Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Macro Reference > Window Object > Methods

EmEditor Macro Reference: prompt Method

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - EmEditor Macro Reference - Window Object

prompt Method

Displays a dialog box to enter a string.


strAnswer = prompt( strMessage, strDefault );


strAnswer = prompt( strMessage, strDefault )



Specifies a message to be displayed.


Specifies a default string to be displayed in the text box.

Return Values

Returns the string the user entered in the text box if the OK button is selected, or an empty string if the Cancel button is selected.


Supported on EmEditor Professional Version 4.00 or later.

Copyright © 2003-2018 by Emurasoft, Inc.