O'Reilly logo

Learning WML, and WMLScript by Martin Frost

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

prompt — Get a string from the user

Usage

Dialogs.prompt(msg, def)

msg : String

def : String

Description

Displays the message msg and prompts the user to enter a string. Returns whatever string the user enters or the default string def if the user enters no characters.

Returns invalid if either argument can’t be converted to a string.

Example

Dialogs.prompt("Please enter a number", "17") 
               
               

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required