Accepts the dialog.
A text to enter in prompt. Does not cause any effects if the dialog's type is not prompt.
If dialog is prompt, returns default prompt value. Otherwise, returns empty string.
Dismiss the dialog
Returns the message displayed in the dialog.
The dialog type. Dialog's type, can be one of alert
, beforeunload
, confirm
or prompt
.
Generated using TypeDoc
Dialog objects are dispatched by page via the 'dialog' event.