Section 25.157. HTMLElement.onclick: event handler invoked when the user clicks on an element


25.157. HTMLElement.onclick: event handler invoked when the user clicks on an element

DOM Level 0

25.157.1. Synopsis

 Function onclick 

25.157.2. Description

The onclick property of an HTMLElement object specifies an event-handler function that is invoked when the user clicks on the element. Note that onclick is different from onmousedown. A click event does not occur unless a mousedown event and the subsequent mouseup event both occur over the same element.

25.157.3. See Also

Element.addEventListener( ), Event, MouseEvent; Chapter 17




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net