Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface default.Page.JavascriptDialogClosedEvent
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { JavascriptDialogClosedEvent } = default.Page;

Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.

Properties

result: boolean

Whether dialog was confirmed.

userInput: string

User input in case of prompt.