> For the complete documentation index, see [llms.txt](https://docs.zerowork.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zerowork.io/using-zerowork/using-building-blocks/browser-alert.md).

# Browser Alert

The **Browser Alert** building block is for handling native browser dialogs like prompts, confirms, alerts, and beforeunload (page exit) confirmations. Per default, TaskBot dismisses these dialogs automatically by clicking **Cancel**. Use this block if TaskBot needs to **accept** the alert.

#### **Prompt text (optional)**

If the browser dialog is a **prompt** requiring input, enter the response text as shown in the screenshot below. This field is ignored for browser dialogs of type alert, confirm or beforeunload (page exit).

<figure><img src="/files/ms9zvtgpLFrjFkkodh9P" alt=""><figcaption></figcaption></figure>

#### **Placement**

Simply place the **Browser Alert** building block after the action that triggers the dialog.

<figure><img src="/files/IZY0o0PDXCXgKP0PzD91" alt=""><figcaption></figcaption></figure>

#### **Run behavior**:

* If a browser alert appears, TaskBot will accept it and continue.
* If no alert is present, TaskBot takes no action and proceeds without interruption.
