ios - UIWebView: Can I disable the javascript alert() inside any web page? -
I am using UIWebView
to load the URL.
In the form of javascript, in the form of that URL, it uses the warning ("whatever msg"). My
UIWebView
will pop up a window and it will show a warning message.
Is there a way to disable such popup windows or JavaScript warning windows?
After adding it, its contents have been loaded in your web view
[MyWebView stringByEvaluatingJavaScriptFromString: @ "Window. Warning = Null,"];
Comments
Post a Comment