Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Protocol.Page.JavascriptDialogClosedEvent
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.ts";
const { JavascriptDialogClosedEvent } = Protocol.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.