Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.
onclick
Type: script code
This event handler is called when the object is clicked.

Example

<image src="hello.png" onclick="alert('Hi')"/>

See also

click DOM element

Document Tags and Contributors

 Contributors to this page: jswisher, colin-marshall, Sheppy, Enn, Marsf, DJAssi
 Last updated by: jswisher,