Skip to content

wv2ScriptDialogKind

Identifies which JavaScript-dialog primitive the page is trying to open. Passed 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.

ConstantValueDescription
wv2DialogAlert0alert() --- a single-message notification with an OK button.
wv2DialogConfirm1confirm() --- a question with OK and Cancel.
wv2DialogPrompt2prompt() --- a text-input question with OK and Cancel.
wv2DialogBeforeUnload3The browser's Leave this page? confirmation raised by beforeunload.

twinBASIC and LOGO copyright of "WaynePhillipsEA" author