Macro Reference — Window Object — confirm Method (Window Object)

# confirm Method (Window Object)

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

##

### [JavaScript]

    bAnswer =confirm( strQuestion, strMessage2);

### [VBScript]

    bAnswer =confirm( strQuestion, strMessage2 )

## Parameters

strQuestion

Specifies a message to be displayed.

strMessage2

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.

## Version

Supported on EmEditor Professional Version 4.00 or later.