> For the complete documentation index, see [llms.txt](https://docs.browserflow.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.browserflow.app/reference/browserflow-commands/interact-with-page/handle-dialog.md).

# Handle Dialog

Accepts or dismisses native browser dialogs

#### Response type

* Accept
  * Selects "OK"
* Dismiss
  * Selects "Cancel"

#### Response text

* If the dialog is a prompt, this is the text that will be inserted into the text box. Otherwise, this has no effect.

### Types of Dialogs

#### Alerts

![](https://3538866232-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MTkfP5kdRxgX1naUvcT%2F-MTpk02NXidHlXimsCXY%2F-MTptWQmH4XUbBhvjp_r%2Fimage.png?alt=media\&token=62392b72-1c3a-4708-8d57-3b37422bda58)

#### Confirmations

![](https://3538866232-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MTkfP5kdRxgX1naUvcT%2F-MTpk02NXidHlXimsCXY%2F-MTptPfMzrY4J-sMWmXE%2Fimage.png?alt=media\&token=977eea39-5008-40a0-a13e-2748802263fd)

#### Prompt

![](https://3538866232-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MTkfP5kdRxgX1naUvcT%2F-MTpk02NXidHlXimsCXY%2F-MTptsY-XboWJwBVfw0T%2Fimage.png?alt=media\&token=2e2deccc-7ef4-4116-b8da-10fbd92ba02b)
