WebView Alert Panel


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. - (void)webView:(WebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame
  2. {
  3. NSBeginInformationalAlertSheet(@"Alert", nil, nil, nil, [sender window], nil, NULL, NULL, NULL, message);
  4. }

URL: http://lists.apple.com/archives/webkitsdk-dev/2006/Oct/msg00030.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.