HTML and CSS Reference
In-Depth Information
HTML5 Event Handlers
Unless otherwise specified, the following event handler content attributes may be specified on
any HTML element:
onabort
ondragleave
onload*
onratechange
onblur*
ondragover
onloadeddata
onreset
oncancel
ondragstart
onloadedmetadata onscroll
oncanplay
ondrop
onloadstart
onseeked
oncanplaythrough ondurationchange onmousedown
onseeking
onchange
onemptied
onmousemove
onselect
onclick
onended
onmouseout
onshow
onclose**
onerror*
onmouseover
onsort**
oncontextmenu
onfocus*
onmouseup
onstalled
oncuechange
oninput
onmousewheel
onsubmit
ondblclick
oninvalid
onpause
onsuspend
ondrag
onkeydown
onplay
ontimeupdate
ondragend
onkeypress
onplaying
onvolumechange
ondragenter
onkeyup
onprogress
onwaiting
NOTE
onblur , onerror , onfocus , and onload behave slightly differently when applied to the
body element because the body element shares these event handlers with its parent win-
dow.
* Event handler for Window object when used with the body element.
** WHATWG and HTML5.1 only. Not in HTML5 Candidate Recommendation.
Search WWH ::




Custom Search