The Dialogs Library

Similar to the WMLBrowser Library, the Dialogs Library contains a number of commonly used functions. You’ve already seen the Dialog Library’s alert function used widely within the examples in this chapter and throughout the last couple of chapters.

The Dialogs Library is important in that it contains functionality to communicate messages to users. Table 12.7 lists the functions of the Dialogs Library.

Table 12.7. The Built-In Functions of the Dialogs Library
Function Syntax Argument Description Example
alert
Dialogs.alert 
(string) 
String message. Displays a warning message to the user.
Dialogs.alert 
("Incorrect 
Format."); 
confirm
Dialogs.confirm 
(string1, string2,
										string3) 
string1 represents a message.

string2 represents ...

Get WAP 2.0 Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.