Altova Authentic 2025 Desktop

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".

 

Signature

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

 

Example

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

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

scr_cmd_prompt

© 2018-2024 Altova GmbH