confirm Method

MS Office 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:
Version data is listed when the mouse hovers over a link, or the link has focus.

window


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.