- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Description
Displays a popup message to the user.
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
message | Text | Yes | Message to display |
[title] | Text | No | Title to display (above message) |
Returns
No return value.
Examples
// display popup message to the user
user.alert("Please enter your age.");
// display popup message to the user (with custom title)
user.alert("Please enter your age.", "Oops!");
Remarks
Use this function when you need to display a message to the user that must be dismissed before they can continue.
Tip
The runtime also supports more useful native validation features, so you don't need to use this function normally for routine input validation.