/ Published in: Objective C

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
- (BOOL)webView:(WebView *)sender runJavaScriptConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame { NSInteger result = NSRunInformationalAlertPanel(NSLocalizedString(@"JavaScript", @""), // title message, // message NSLocalizedString(@"OK", @""), // default button NSLocalizedString(@"Cancel", @""), // alt button nil); return NSAlertDefaultReturn == result; }
Comments
