Click to return to the DHTML, HTML     
componentFromPoint Method     contains Method     DHTML Methods    
Web Workshop  |  DHTML, HTML & CSS

confirm Method


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

Syntax

bChoice = window.confirm([sMessage])

Parameters

sMessageOptional. 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

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:

window



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.