The alert
function displays an alert dialog. Multiple calls to alert
will concatenate the alert messages.
var result = new Result();
result.alert("good morning!").alert("good night!");
Calling | Returning |
---|---|
result. alert ( message ) |
Result |
result. alert ( message, title ) |
Result |
result. alert ( message, params ) |
Result |
result. alert ( message, title, params ) |
Result |
Parameters | Type | Description |
---|---|---|
message |
String |
The message to display in the alert dialog. Placeholders can be used: xxxx{param1}yyy{param2}yy You can define "{param}" in the message; it will be replaced by the corresponding value in the params object. |
params |
Object |
The parameters used to replace the "{param}" placeholders in the message. Example: {param1: value1, param2: value2 } |
title |
String |
The title for the alert dialog. |