From http://www.w3schools.com (Copyright Refsnes Data)

WMLScript confirm() Function


WMLScript Dialogs Library 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)


WMLScript Dialogs Library Complete WMLScript Dialogs Library

From http://www.w3schools.com (Copyright Refsnes Data)