
Hi,
I am developing web browser for iPhone and iPhone devices. I want to call the java script in my html page from UIWebView. Please let's know how to call JavaScript function from objective c code?
Thanks

Hi,
You should develop javascript in your html file say:
<Script Language="JavaScript">
function sayHello(){
alert("hello");
}
</Script>
Now in your objective c code add the following line to call javascript function:
[webView stringByEvaluatingJavaScriptFromString:@"sayHello()"];
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.