# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zerowork.io/using-zerowork/using-building-blocks/browser-alert.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
