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.
<?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>
Code for AlertExample.wml
extern function displayalert()
{
Dialogs.alert("Hello
wireless world!");
};
Code for AlertExample.wmls