WMLScript » Dialogs » Dialogs.alert

Syntax:
Dialogs.alert(message)
message
The mandatory message parameter is a string or text that contains the message you wish displayed.

Displays a message, called an alert, that the user must acknowledge.

The Dialogs.alert function displays a message that provides useful information to the user. This function requires an acknowledgement from the user. When the response occurs, an empty string "" is returned.




Examples

Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>
   <card id="card1">
      <p>
         alert example
      </p>
      <do type="accept">
         <go href="AlertExample.wmls#displayalert()" />
      </do>
   </card>
</wml>
Explanation:

Code for AlertExample.wml

Language(s): WML
Code:
extern function displayalert()
{
   Dialogs.alert("Hello wireless world!");
};
Explanation:

Code for AlertExample.wmls

Language(s): WML

See Also: