Alert dialog box

An alert dialog box is a special dialog box that is displayed in a graphical user interface when something unexpected occurred that requires immediate user action.

Uses your system voice; voice and rate in settings.

≈ 2 min read

Cite, export and learn8 citation formats · 8 exports · lesson and quiz

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

An alert dialog box is a special dialog box that is displayed in a graphical user interface when something unexpected occurred that requires immediate user action. The typical alert dialog provides information in a separate box to the user, after which the user can only respond in one way: by closing it.

Closing an alert dialog will provide access to the original window, which is not available while the alert dialog is presented. Alert dialogs that block the application are regarded as a bad design solution by usability practitioners, since they are prone to produce mode errors.

Also when used as error dialogs, they have been shown to be ineffective in their goals to inform users about an error condition or protect from a destructive operation.

]] An alert dialog box is a special dialog box that is displayed in a graphical user interface when something unexpected occurred that requires immediate user action. The typical alert dialog provides information in a separate box to the user, after which the user can only respond in one way: by closing it.

Closing an alert dialog will provide access to the original window, which is not available while the alert dialog is presented. Alert dialogs that block the application are regarded as a bad design solution by usability practitioners, since they are prone to produce mode errors.

Also when used as error dialogs, they have been shown to be ineffective in their goals to inform users about an error condition or protect from a destructive operation.

Example

alert() is the name of the method used in JavaScript to spawn an alert dialog. The argument to the method is the text to be displayed in the window. A dialog created this way will contain a yellow triangle warning symbol (similar to those found on electrical devices), the text of the warning message, and a single button saying "OK" which will close the window.

Such a dialog also assumes control over the user interface, preventing the user from proceeding with any other task in the application until the dialog window is closed.

Text derived from https://en.wikipedia.org/w/index.php?oldid=1363221567 under CC BY-SA 4.0; modifications have been made.

Provenance

snapshot enwiki-001363221567 · captured 2026-07-08 · ledger · version history

Cite this page as: encyclopegia.org, “Alert dialog box”, snapshot enwiki-001363221567. https://encyclopegia.org/a/alert-dialog-box

Sources cited in this revision

6 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.