wv2ScriptDialogKind

Identifies which JavaScript-dialog primitive the page is trying to open. Carried as the ScriptDialogKind argument of the ScriptDialogOpening event — the event only fires when AreDefaultScriptDialogsEnabled is False, so the application can implement its own dialogs. Mirrors the COREWEBVIEW2_SCRIPT_DIALOG_KIND enumeration.

Constant Value Description
wv2DialogAlert 0 alert() — a single-message notification with an OK button.
wv2DialogConfirm 1 confirm() — a question with OK and Cancel.
wv2DialogPrompt 2 prompt() — a text-input question with OK and Cancel.
wv2DialogBeforeUnload 3 The browser’s Leave this page? confirmation raised by beforeunload.