www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Methods
 confirm Method
confirm Method

Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.

Syntax

bConfirmed = 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 one 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.

Standards Information

There is no public standard that applies to this method.

Applies To

window

See Also

alert, prompt
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG