HBCMS更多的中文手册参考:

confirm Method

DHTML文档教程

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:

trueThe user clicked the OK button.
falseThe 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

window

更多语法参考

alert, prompt