Js-javascript Advanced Programming Study Note 9

Source: Internet
Author: User

Still 13th Chapter Event

1, all elements on the page support mouse events, except MouseEnter and MouseLeave, all mouse events will bubble.

2. Modifier keys: Shift, CTRL, ALT, Meta. The four properties represent the state of the modifier key: Shiftkey, and so on.

3. The Relatedtarget property of the event object provides information about the element. Only the mouseover and Mouseout events contain values.

4. The solution to the "too many event handlers" issue is the event delegate . Event delegates use time bubbling to specify only one event handler to manage all events of a certain type . The most appropriate events for event delegation technology include Click,MouseDown, MouseUp, KeyDown, KeyUp, and KeyPress.

Js-javascript Advanced Programming Study Note 9

Related Article

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.