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 value | Description |
|---|---|
|
The user clicked the OK button. |
|
The user clicked Cancel button. |
Remarks
The title bar of the confirmation dialog box cannot be changed.
See also
Build date: 3/8/2012