Altova StyleVision 2024 Professional Edition

Opens a dialog box that shows a message and a textbox control with a default answer. This can be used to let the user input a simple string value. The return value is a string that contains the textbox value or null if the user selected "Cancel".



prompt(strMessage : String, strDefault : String) -> val : String



var name = prompt( "Please enter your name", "Daniel Smith" );
if ( name != null )

   alert( "Hello " + name + "!" );


© 2018-2024 Altova GmbH