Common event types can be divided into the following types:
1. mouse events
Events that are currently located by the mouse: Mouseover and mouseout
Events that track mouse clicks: mouseup, mousedown, and click
2. Keyboard Events
Tracks keyboard percussion and context.
There are three types: keyup, keydown, keypress
3. UI events
It is used to track whether a user uses a page to overwrite the page.
For example, the tracking inputs are through the focus and blur events.
4. Form Events
These interactions only occur on the form and form input elements.
The submit event is used to track whether a form is submitted or not.
The change event is used to listen to the user's input in an element.
The Select event is triggered after the <SELECT> </SELECT> element is updated.
5. Loading and error events
Listen to its own loading status.
When the user loads the page (load event) for the first time and the user leaves the page (unload and beforeunload events), it is bound.
In addition, JavaScript uses error event tracking to allow you to handle errors independently ).