Provides data for the WebKitBrowser.ShowJavaScriptAlertPanel event.
상속: System.EventArgs
예제 #1
0
 int uiDelegate_RunJavaScriptPromptBeforeUnload(WebView sender, string message)
 {
     ShowJavaScriptPromptBeforeUnloadEventArgs args = new ShowJavaScriptPromptBeforeUnloadEventArgs(message);
     ShowJavaScriptPromptBeforeUnload(this, args);
     return Convert.ToInt32(args.ReturnValue);
 }
예제 #2
0
 private void webKitBrowser1_ShowJavaScriptPromptBeforeUnload(object sender, ShowJavaScriptPromptBeforeUnloadEventArgs e)
 {
     if (MessageBox.Show(e.Message, "OpenWebKitSharp Example", MessageBoxButtons.YesNoCancel) == System.Windows.Forms.DialogResult.Yes)
     {
         e.ReturnValue = true;
     }
     else
     {
         e.ReturnValue = false;
     }
 }