javascript - Script in iPhone SDK -


Can anyone help me, how to write a script in the iPhone SDK without the HTML string?

I'm trying this:

  [webView stringByEvaluatingJavaScriptFromString: @ "var script = document.createElement ('script');" "Script. Type = 'text / javascript';" "Script.text = alert ();" "Document.getElementsByTagName ('body'). Attachment (script);"];  

But I can not see the warning on this.

Can anyone help me in this?

[webview stringvvvtv javascriptframestring: @ "var script = document. CreateElement ('script');" "Script. Type = 'text / javascript';" "Script.text = \" function myFunction () {"" warning (); ""} \ ";" "Document.getElementsByTagName ('body') appendChild (script);"]; [WebView stringbivyewelting JavaScript ScriptWriterString: @ "MyFunction ();"];

Try it out ....


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -