HTML5 Events
Following all event are - Window Event Attributes, Form Events, Keyboard Events, Mouse Events, Media Events are support in all HTML5 Tags.

There are following attributes which can be used to trigger any javascript or vbscript code given as value, when there is any event occurs for any HTM5 element.
1. Window Event Attributes
Window Events triggered for a window object and apply in <body> tag
Attributes Value Description
onbeforeunload Javascript Script is run before the document is unloaded
onerror Javascript Script is run when any error occur
onafterprint Javascript Script is run after the document is printed
onstorage Javascript Script is run when web storage area is updated
onundo Javascript Script is run when document performs undo
onunload Javascript This Event browser window has been closed
onhaschange Javascript Script is run when document has changed
onload Javascript Event fires after the page loading finished
onmessage Javascript Script is run when document goes in offline
onoffline Javascript Script is run when document comes in online
onpagehide Javascript Script is run when document window is hidden
onbeforeprint Javascript Script is run before the document is printed
onredo Javascript Script is run when document perform redo
onresize Javascript Browser window is resized
onpageshow Javascript Script is run when document window become visible
onpopstate Javascript Script is run when document window history changes
2. Form Events
Form Events triggered by perform some action inside HTML form elements.
Attributes Value Description
onsubmit Javascript Event fire when form is submitted
onselect Javascript Event fire after allow to select text in an element
onblur Javascript Event fire when element loses focus
onchange Javascript Event fire when element value is changed
oninvalid Javascript Event fire when element is invalid
oncontextmenu Javascript Event fire when context menu is triggered
onformchange Javascript Event fire when form changes
onforminput Javascript Event fire when form get input field
oninput Javascript Event fire when element get input field
onfocus Javascript Event fire when element gets focus
3. Keyboard Events
Attributes Value Description
onkeydown Javascript Event fire when pressing a key
onkeypress Javascript Event fire when press a key
onkeyup Javascript Event fire when releases a key
4. Mouse Events
Mouse Events triggered by mouse action.
Attributes Value Description
onclick Javascript Event fire when mouse click on element
ondblclick Javascript Event fire when mouse double click on element
ondrag Javascript Script is run when element is dragged
ondragend Javascript Script is run at end of drag operation
ondragenter Javascript Script is run when element has dragged to a valid drop target
onmousedown Javascript Event fire when mouse button is pressed down on element
onmousemove Javascript Event fire when mouse pointer moves over an element
ondragleave Javascript Script is run when element leaves valid drop target
ondragover Javascript Script is run when element is dragged over on valid drop target
ondragstart Javascript Script is run at start of drag operation
onmouseover Javascript Event fire when mouse pointer moves over on element
onmousewheel Javascript Event fire when mouse wheel being rotated
onscroll Javascript Event fire when element scrollbar being scrolled
ondrop Javascript Script is run when dragged element is dropped
onmouseout Javascript Event fire when mouse pointer moves out an element
onmouseup Javascript Event fire when mouse button is released over an element
5. Media Events
Media Events triggered by common media elements like <img>, <audio>, <embed>, <object>, and <video>.
Attributes Value Description
onended Javascript Script is run when media has reach to end position
oncanplaythrough Javascript Script is run when file is played all way without pausing for buffering
ondurationchange Javascript Script is run when media length changes
onabort Javascript Script is run when element is abort
oncanplay Javascript Script is run when file is ready for start playing
onemptied Javascript Script is run when something unavailable/disconnects
onerror Javascript Script is run when error occurs file loaded time
onloadeddata Javascript Script is run when media is loaded
onloadedmetadata Javascript Script is run when meta data are loaded
onloadstart Javascript Script is run when file being loaded
onpause Javascript Script is run when media is paused
onplay Javascript Script is run when media is ready to start playing
ontimeupdate Javascript Script is run when playing position has changed
onvolumechange Javascript Script is run each time volume is changed
onwaiting Javascript Script is run when media has paused(for buffer more data)
onreadystatechange Javascript Script is run when ready state changes for each time
onseeked Javascript Script is run when seeking attribute value set to false, that indicate seeking has ended
onseeking Javascript Script is run when seeking attribute value set to true, that indicate seeking has active
onplaying Javascript Script is run when media is actually start for playing
onprogress Javascript Script is run when browser is process of getting media data
onratechange Javascript Script is run when playback rate changes
onsuspend Javascript Script is run when fetching media data is stopped before it is completely loaded for any reason
onstalled Javascript Script is run when browser is unable to fetch media data for any reason