JavaScript Events:
An event is a signal that something happened.
All DOM generated signals.
Types of Events
There are many Events in JavaScript but some events discuss in this article.
- Mouse Events
- Click : Its performed when mouse click on any element. and touchscreen user can tabs to perform this event.
- contextmenu : Its performed when mouse right click on any element.
- mouseover : Its performed when mouseover the element.
- mouseout : Its performed when mouseout the element.
- mouseup : Its performed when mouse pressed.
- mousedown: Its performed when mouse released over an element.
- Keyboard Events
1.keydown and keyup β when a keyboard key is pressed and released.
- Form Element Events
submit: when the visitor submits a
focus: when the visitor focuses on an element, e.g. on an
- Document Events:
- DOMContentLoaded: when the HTML is loaded and processed, DOM is fully built.
- CSS events:
- transitionend: when a CSS-animation finishes.