title: How to handle alert click where alert generated from UIWebview .?
body: <p>I used this also:</p>
  
  <pre><code>@interface UIWebView (JavaScriptAlert)
  
   - (void)webView:(UIWebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame;
  
  @end
  
  @implementation UIWebView (JavaScriptAlert)
  
  - (void)webView:(UIWebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame {
      UIAlertView *dialogue = [[UIAlertView alloc] initWithTitle:@"My Alert Title" message:message delegate:self cancelButtonTitle:@"Okay" otherButtonTitles:nil];
      [dialogue show];
  }
  </code></pre>