[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [Page](./puppeteer.protocol.page.md) > [JavascriptDialogClosedEvent](./puppeteer.protocol.page.javascriptdialogclosedevent.md) ## Protocol.Page.JavascriptDialogClosedEvent interface Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed. Signature: ```typescript export interface JavascriptDialogClosedEvent ``` ## Properties | Property | Type | Description | | --- | --- | --- | | [result](./puppeteer.protocol.page.javascriptdialogclosedevent.result.md) | boolean | Whether dialog was confirmed. | | [userInput](./puppeteer.protocol.page.javascriptdialogclosedevent.userinput.md) | string | User input in case of prompt. |