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
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|