6 out of 15 rated this helpful - Rate this topic

confirm method

[This documentation is preliminary and is subject to change.]

Applies to: desktop apps only

Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.

This method is not supported for Metro style apps using JavaScript.

Syntax

var retval = window.confirm(message);

Standards information

There are no standards that apply here.

Parameters

message [in, optional]

Type: BSTR

String that specifies the message to display in the confirmation dialog box. If no value is provided, the dialog box does not contain a message.

Return value

Type: BooleanBoolean. Returns one of the following possible values:
Return valueDescription
true

The user clicked the OK button.

false

The user clicked Cancel button.

 

Remarks

The title bar of the confirmation dialog box cannot be changed.

See also

window
Reference
alert
prompt

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ