Share via


onbuttonclick Event

Fires when a ToolbarCheckButton or ToolbarButton is clicked.

Syntax

Inline HTML <ELEMENT onbuttonclick = "handler" ... > All platforms
Event property object.onbuttonclick = handler Microsoft JScript only
object.onbuttonclick = GetRef("handler") Microsoft Visual Basic Scripting Edition (VBScript) 5.0 or later only
Named script <SCRIPT FOR = object EVENT = onbuttonclick> Internet Explorer only

Event Information

Bubbles No
Cancels Yes
To invoke Select/deselect a TOOLBARCHECKBUTTON.
Default action Calls the associated event handler if there is one.

Event Object Properties

Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query the rid not found (_inet_event_Object). object for the following event properties.

Available Properties

flatIndex
srcNode

Refer to the specific event object for additional event properties.

Remarks

This event fires when the SELECTED attribute is set on a ToolbarCheckButton. To determine the state of the ToolbarCheckButton, use the oncheckchange event.

Applies To

TOOLBAR

See Also

Internet Explorer WebControls, About the Toolbar WebControl