JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Checkbox.onclick() Handler

Name

Checkbox.onclick() Handler---invoked when a Checkbox is selected

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

<INPUT TYPE="checkbox"   a definition of the handler
       onClick="handler-statements">
checkbox.onclick  a reference to the handler
checkbox.onclick();   an explicit invocation of the handler

Description

onclick() is an event handler invoked when the user clicks on a Checkbox. This event handler is defined by the onClick attribute of the HTML <INPUT> tag that defines the Checkbox. The value of this attribute may be any number of JavaScript statements, separated by semicolons; these statements will be executed when the user clicks on (i.e., checks or unchecks) the Checkbox.

See Also

"Checkbox"


Previous Home Next
Checkbox.onblur() Book Index Checkbox.onfocus()

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
This HTML Help has been published using the chm2web software.