Page.javascriptDialogOpening

Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.

{
  "name": "javascriptDialogOpening",
  "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.",
  "parameters": [
    {
      "name": "message",
      "type": "string",
      "description": "Message that will be displayed by the dialog."
    },
    {
      "name": "type",
      "$ref": "DialogType",
      "description": "Dialog type."
    }
  ]
}