JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Button.onclick() Handler

Name

Button.onclick() Handler---invoked when a Button is clicked

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

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

Description

onclick() is an event handler invoked when the user clicks on a button. A button's onclick() handler is defined by the onClick attribute of the HTML <INPUT> tag. 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 the button.

See Also

"Button"


Previous Home Next
Button.onblur() Book Index Button.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.