Emitted when JavaScript code calls `window.
alert`, `window.confirm` or `window.prompt`, or when `onbeforeunload` event is fired. The dialog parameter should be used to
build the dialog. If the signal is not handled a different dialog will be built and shown depending on the dialog type:
It is possible to handle the script dialog request asynchronously, by simply calling
@ref on the dialog argument and calling
close when done. If the last reference is removed on a
ScriptDialog and the dialog has not been closed,
close will be called.
| dialog |
the ScriptDialog to show |
|
true to stop other handlers from being invoked for the event. false to propagate the event further. |