Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.
dhtml语法
bConfirmed = window.confirm( [sMessage])
Parameters
sMessage |
Optional.
Stringthat 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爋ne of the following possible values:
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.
是否符合公共标准
There is no public standard that applies to this method.
Applies To
更多语法参考
alert, prompt