Show/Hide Toolbars

EmEditor Help

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

EmEditor Macro Reference: confirm Method

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

confirm Method

Displays a message in a simple dialog box with the OK button and the Cancel button.


bAnswer = confirm( strQuestion, strMessage2 );


bAnswer = confirm( strQuestion, strMessage2 )



Specifies a message to be displayed.


Optional. Specifies an additional message to be displayed below the first message.

Return Values

Returns true if the OK button is selected, or false if the Cancel button is selected.


Supported on EmEditor Professional Version 4.00 or later.

Copyright © 2003-2021 by Emurasoft, Inc.