Clear Up
SharpKit Reference

HtmlContextBase.confirm Method (JsString)

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

Namespace: SharpKit.Html4

Class: HtmlContextBase


protected static JsBoolean confirm(JsString message)


Type: SharpKit.JavaScript.JsString
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

Type: SharpKit.JavaScript.JsBoolean
Boolean. Returns one of the following possible values:
  • true The user clicked the OK button.
  • false The user clicked Cancel button.
© Copyright 2005-2011 SharpKit. All rights reserved.