> 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

![](/files/-MTptWQmH4XUbBhvjp_r)

#### Confirmations

![](/files/-MTptPfMzrY4J-sMWmXE)

#### Prompt

![](/files/-MTptsY-XboWJwBVfw0T)
