alert() Function

The alert() function shows a message box, with optional message text.

Screenshot of an alert dialog in JetScript

Syntax

alert()
alert(message)

Parameters

Return value

None (undefined).

Example

> alert()
undefined
> alert("Hello, world!")
undefined

References