Table of content:
- What is an event handler
- Event handlers in HTML Elements
- Event handlers list
- The Abort Event (onabort)
- The Blur Event (onblur)
- The Change Event (onchange)
- The Click Event (onclick)
- The Focus Event (onfocus)
- The Keydown Event (onkeydown)
- The Keypress Event (onkeypress)
- The Keyup Event (onkeyup)
- The Load Event (onload)
- The Mousedown Event (onmousedown)
- The Mousemove Event (onmousemove)
- The Mouseover Event (onmouseover)
- The Mouseout Event (onmouseout)
- The Mouseup Event (onmouseup)
- The Reset Event (onreset)
- The Submit Event (onsubmit)
- The Unload Event (onunload)
What is an event handler
An event handler is a predefined JavaScript property of an object that is used to handle an event on a web page. When a viewer of a web page performs an action such as clicking a button, moving the mouse over a particular part of the web page etc means that an event is taking place. JavaScript can identify these events and react to them making the web page more interactive and useful.