onclick Attribute

The onclick attribute is an event handler attribute. It "triggers" and calls the code in its value when the element it is in is clicked.


See also: Attributes, this, and Nesting Quotes

Back to Knowledge Dump