# showMessageBox (deprecated)

### brixxApi.**showMessageBox**

Displays a modal messagebox with buttons. Each button gets a function that is called when the button is clicked. The Messagebox will **NOT** block the script. The next line after the messagebox will be executed while the messagebox is still visible. If you want to wait for the button click. use waitForMsgBox instead.

### Parameters

messageBoxOptions - A JSON object with messageBox parameters

### Example Usages

```javascript
   brixxApi.showMessageBox({
      title: "sampel title",
      text: "sampel text",
      buttons: [
         {
             title: "myButton",
             click: function(){
                 console.log("myButton clicked!!!!");
             }
         }
   ]});
```


---

# 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://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/showmessagebox-deprecated.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.
