Hi all,
Can any one help me, how to write a script in iPhone SDK,without HTML string.
I am trying this:
[webView stringByEvaluatingJavaScriptFromString:@
"var script = document.createElement('script');"
"script.type = 'text/javascript';"
"script.text = alert(); "
"document.getElementsByTagName('body').appendChild(script);"];
But I cant see alert in this.
Can any one please help me in this?