Can I handle alert inside UIWebViewDelegate?
A better solution to this problem is to create a Category for UIWebView for the method webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame: So that you can handle the alert event in any way that you’d like. I did this because I don’t like the default behavior of UIWebView when it puts the filename of the source in the UIAlertView title. … Read more