---
title: "doo.alert"
url: "https://help.tabidoo.cloud/en/article/dooalert"
language: "en"
last_updated: "2026-04-13T13:47:43.106Z"
---

# doo.alert

This function allows you to show a dialog box to the user with a text message or a question. Users can respond to this message and continue interacting with the application. It can be used for informing the user, collecting input, or displaying important messages.

## Functions

There are four predefined functions in the `doo.alert` namespace:

#### Success

`showSuccess(text, title?,html?)`

Show success notification. Use it for success messages to users.

Example:

```javascript
doo.alert.showSuccess('This is really working out.','Great job!');
```

#### ![](https://cdn-assets.productfruits.com/58805757-4dc2-4968-9210-f9d6bf6fba7c)

#### Info

`showInfo(text, title?, html?)`

Show info notification. Use this if you need to share any progress info with the user.

Example:

```javascript
doo.alert.showInfo('It may take a while.','Warning');
```

![](https://cdn-assets.productfruits.com/9f80f408-6585-401d-b523-0bf4388f994f)

#### Warning

`showWarning(text, title?, html?)`

Show warning notification.

Example:

```javascript
doo.alert.showWarning('This is a warning toast message.','Warning!');
```

![](https://cdn-assets.productfruits.com/cae93a21-e6fa-4099-900e-b13a0f20284c)

#### Error

`showError(text, title?, html?)`

Show error notification.

Example:

```javascript
doo.alert.showError('That did not work.','Oops!');
```

![](https://cdn-assets.productfruits.com/576c9fee-5cdf-418f-a9ed-8e233a3e91fa)

*All four functions in the doo.alert namespace allow text formatting using HTML tags. This enables you to highlight important parts of text or add additional effects.*

Example:

![](https://cdn-assets.productfruits.com/9b8cf631-1cfa-4acb-9c66-89ccd91ae5d9)

```javascript
doo.alert.showError('<span style="color: red;">That did not work.</span>', 'Oops!');
```

#### Question

`showQuestion(text, title?, html?)`

Show a dialog box with a question to the user.

Example:

```javascript
doo.alert.showQuestion('Do you want to continue?','Question');
```

![](https://cdn-assets.productfruits.com/a27fcaae-161c-4a29-8581-3adad44260f4)
