Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.
Syntax
bChoice = window.confirm([sMessage])
Parameters
sMessage Optional. 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
Boolean. Returns true if the user clicks OK, or false if the user clicks Cancel.
Remarks
The title bar of the confirmation dialog box cannot be changed.
Applies To