The original JS in different event types are just a few--summary from the "Javascirpt&jquery interactive Web front-end development"

Source: Internet
Author: User

There are typically three types of events when browsing a Web site: UI events, keyboard events, and mouse events

1. UI events (when the user interacts with elements on the page to trigger)

Load Web page loading complete
Unload Web page is unloading (usually because a new page is requested)
The error browser encountered a JavaScript error or a resource that does not exist
Resize the size of the browser window has changed
Scroll user moved the page using the scroll bar

2. Keyboard events (occurs when the user is working on the keyboard)

KeyDown the first time a user presses a key (which is triggered repeatedly when the key is pressed)
KeyUp user has released a key
KeyPress Type a character (which is triggered repeatedly when you hold the key)

3. Mouse events (occurs when the user operates the mouse, trackpad, or touch screen)

Click, press and Release
Dbclick Double click, press and release twice in succession
MouseDown Press the mouse button
MouseUp Release the mouse button
MouseMove the user moves the mouse (does not occur on the touch screen)
MouseOver the user moves the mouse over an element (does not occur on the touch screen)
Mouseout user removed from an element

3. Focus event (occurs when an element such as a link or form field Gets or loses focus)

Focus/focusin element gets focus
Blur/focusout element loses focus

4. Form events occur when a user interacts with a FORM element

The value in input <input> or <textarea> element has changed (ie9+)
The Change check box, radio box, or radio button values have changed (ie9+)
Submit User Submission Form (submit using button or keyboard)
Reset user clicked the Reset button on the form
Cut user cuts content from a form field
Copy you know ....
Paste you know ....
Select User selects some text in a form field

5. Change events (update ing)

The original JS in different event types are just a few--summary from the "Javascirpt&jquery interactive Web front-end development"

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.