in

Complete List Of HTML Event Reference

Here is the list of events found in HTML. This events are important when adding activities or event to web documents. When users visit our web page they sometimes carry out events such as button clicking, link clicking, or text hovering etc. We can structure a function using JavaScript or any other scripting language that executes whenever a website visitor carry’s out an event on our website.

List of Window Event Attributes

EVENT DESCRIPTION HTML5
onerror This event is comes up when an error is encountered 5
onbeforeprint This event comes up before a document is printed 5
onafterprint This event comes up after a document is printed 5
onload This event comes up when a document loads  
onoffline This event comes up when a document goes offline 5
onmessage This event comes when a message is triggered 5
onpagehide This event comes up when a window goes hidden 5
onhaschange This event comes up when a document has changed 5
onpageshow This event comes up when a document becomes visible 5
onpopstate This event comes up when a windows history changes 5
onredo This event comes up when a redo is performed on a document 5
onresize This event comes up when a document is resized 5
onunload This event comes up when a document is unloaded  
onstorage This event comes up when a document is stored 5
onundo This event comes up when a document undo is triggered 5
ononline This event is triggered when a document comes online 5

List Of Form Events

These are the list of events that can be used on a web form

FORM EVENT DESCRIPTION HTML5
oninput This event is called when a user inputs data into a form element 5
oninvalid This event is called when an element is invalid 5
onblur This event is called when a window is blur  
onchange This event is called when an element is changes  
onfocus This event is called when a window gets focus  
onforminput This event is called when a form gets an input 5
onreset This event is called when a form is reset  
onselect This event is called when a form element is selected  
onsubmit This event is called when a form is submitted  
onformchange This event is called when a form is changed 5
oncontextmenu This event is called when a context menu gets triggered 5
onchange This event is called when a form element is changed  

Keyboard Events

These are the list of events that can occur with the use of keyboards

EVENT DESCRIPTION HTML 5
onkeydown This event is called when a key is pressed  
Onkeypress This event is called when a key is pressed and released  
onkeyup This event is called when a key is released  

List of Mouse EVENTS

These are the list of events that can occur with the use of the mouse

EVENTS DESCRIPTION HTML5
onclick This event is called when an element is clicked on the web page  
ondblclick This event is called when an element on the web page is double clicked  
ondrop This event is called when an element dragged on the web page is dropped using the mouse  
ondrag This event is called when an element on the web page is dragged using the mouse  
ondragenter This event Is called when an element on the web page is dragged to a target  
ondragover This event is called when an element is dragged over a target  
ondragend This event is called at the end of a drag  
ondragleave This event is called when an element leaves a drop target  
ondragstart This event is called at the start of a drag  
onmousedown This event is called when a mouse button is pressed down  
onmouseup This event is called when a mouse button is release  
onmouseout This event is called when the mouse pointer moves out of an element  
onmouseover This event Is called when the mouse pointer moves over an element  
onmousewheel This event is called when the mouse wheel is rotated  
onscroll This event is called when the scrollbar is scrolled using the mouse  

List of Media EVENTS

These are the list of events that can occur with the use of the media

EVENTS DESCRIPTION HTML5
onplay This event is executed when the media starts playing 5
onpause This event is executed when the media is paused 5
onended This event is executed when the media comes to an end 5
onerror This event is executed when error is encountered 5
onloadstart This event is executed when the browser starts loading the media 5
onplaying This event is executed when the media has started playing 5
ondurationchange This event is executed when the media duration changes 5
oncanplaythrough This event is executed when the media is played to the end without buffering 5
onabort This event is called when the media aborts  
onemptied This event is called when the media resource is emptied 5
onloaddata This event is called when the media data is loaded 5
onprogress This event is called when the media data is been fetched 5
onratechange This event is called when the media play rate changes 5
onstalled This event is called when there is an error in fetching media data 5
onsuspend This event is called when the media fetching is stopped before the end 5
ontimeupdate This event is called when the media time updates 5
onvolumechange Thie event is called when the media volume is changed 5
onwaiting This event is called when the media has stopped playing but is expected to resume again 5
onseeking This event is called when the media starts seeking 5
onreadystatechange This event is called when the media ready-state changes 5

reference

Tutorialpoint

What do you think?

List of HTML Attribute Reference

introduction to basics of css

Introduction To The Basics of CSS