UserPromptType Enum

The kind of a simple dialog (https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#simple-dialogs).

public enum UserPromptType

Fields

NameValueDescription
Alert0A message, shown by alert(): the user can only acknowledge it.
Confirm1A question, asked by confirm(): the user accepts (OK) or dismisses (Cancel) it.
Prompt2A question, asked by prompt(): the user enters a text and accepts it, or dismisses the dialog.
BeforeUnload3The confirmation of the unloading of a document whose beforeunload event is canceled (https://html.spec.whatwg.org/multipage/browsing-the-web.html#checking-if-unloading-is-canceled): the document is unloaded when the user accepts it, and the navigation or the closing is canceled when the user dismisses it.