WMLScript confirm() Function
Complete WMLScript Dialogs Library
The confirm() function displays a message, waits for an answer,
and then returns a boolean value depending on which answer the
user selected. If the user selected the ok value the return value is
true, and if the user selected the cancel value the return value is false.
Syntax
n = Dialogs.confirm(message, ok, cancel) |
Part |
Description |
n |
The Boolean value returned from the function |
message |
A string containing the message |
ok |
A string containing the OK text |
cancel |
A string containing the CANCEL text |
Example
var a = Dialogs.confirm("Exit?","Yes","No");
|
Result
a = true (if "Yes" is selected)
a = false (if "No" is selected)
|
Complete WMLScript Dialogs Library
Learn XML with <oXygen/> XML Editor - Free Trial!
|
|
oXygen helps you learn to define,
edit, validate and transform XML documents. Supported technologies include XML Schema,
DTD, Relax NG, XSLT, XPath, XQuery, CSS.
Understand in no time how XSLT and XQuery work by using the intuitive oXygen debugger!
Do you have any XML related questions? Get free answers from the oXygen
XML forum
and from the video
demonstrations.
Download a FREE 30-day trial today!
|
|