Below is a compilation of some frequently encountered HTML events:
Event |
Description |
onchange |
An HTML element has been modified. |
onclick |
The user interacts with an HTML element by clicking it. |
onmouseover |
The user hovers the mouse over an HTML element. |
onmouseout |
The user moves the mouse away from an HTML element. |
onkeydown |
The user presses a key on the keyboard. |
onload |
The browser has completed loading the page. |
Event handlers serve to manage and validate user input, user interactions, and browser actions:
Various approaches exist for enabling JavaScript to interact with events:
You will gain deeper insights into events and event handlers in the HTML DOM chapters. |