25.157. HTMLElement.onclick: event handler invoked when the user clicks on an elementDOM Level 025.157.1. SynopsisFunction onclick 25.157.2. DescriptionThe 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 AlsoElement.addEventListener( ), Event, MouseEvent; Chapter 17 |