> For the complete documentation index, see [llms.txt](https://gebra-it.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gebra-it.gitbook.io/wiki/client-api-reference/functions/showmessagebox-deprecated.md).

# showMessageBox (deprecated)

## Deprecated! Better use [showMessage](/wiki/client-api-reference/functions/showmessage.md) instead

## app.**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
app.showMessageBox({
  title: "sampel title",
  text: "sampel text",
  buttons: [
    {
      title: "myButton",
      click: function () {
        console.log("myButton clicked!!!!");
      },
    },
  ],
});
```
