The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.
This method is not supported for Windows Store apps built for Windows using JavaScript.
Syntax
var retval = window.confirm(message);Parameters
- message [in, optional]
-
Type: String
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: Boolean
Boolean. Returns one of the following possible values:| Return value | Description |
|---|---|
|
The user clicked the OK button. |
|
The user clicked Cancel button. |
Standards information
There are no standards that apply here.
Remarks
The title bar of the confirmation dialog box cannot be changed.
See also
Build date: 11/28/2012