DOM Events
DOM Events
HTML DOM allows JavaScript to react to HTML events. A JavaScript can be executed when an event occurs, such as when a user clicks on an HTML element.This list shows just a few examples of HTML events.
- button click
- mouse move
- form submit
When an event occurs on a target element, a handler function is executed.
Common HTML events: