Javascript-Event Type

Source: Internet
Author: User

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 ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.