mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
1.5 KiB
1.5 KiB
Home > puppeteer > Protocol > Page > JavascriptDialogOpeningEvent
Protocol.Page.JavascriptDialogOpeningEvent interface
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
Signature:
export interface JavascriptDialogOpeningEvent
Properties
Property | Type | Description |
---|---|---|
defaultPrompt | string | Default dialog prompt. |
hasBrowserHandler | boolean | True iff browser is capable showing or acting on the given dialog. When browser has no dialog handler for given target, calling alert while Page domain is engaged will stall the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog. |
message | string | Message that will be displayed by the dialog. |
type | DialogType | Dialog type. |
url | string | Frame url. |