Javascript&jquery.dom Events

Source: Internet
Author: User
Tags event listener

DOM Events

The common events in JavaScript are:

    • UI events that occur when interacting with the browser UI itself, rather than the Web page.
    • Mouse events that occur when the user is manipulating the mouse, trackpad, or touch screen.
    • Keyboard events that occur when the user is manipulating the keyboard.
    • A focus event that occurs when an element (such as a link or form) Gets or loses focus.
    • A form event that occurs when a user interacts with a FORM element.
    • A change event that occurs when the user modifies the DOM structure (adding or deleting element nodes).

How DOM events trigger JavaScript code

Object has properties, methods, events

They are essentially the same thing: Property = Method = Event.

Events, methods, properties, events trigger methods, and methods change properties.

In layman's terms, events trigger JavaScript.

The process of triggering is this:

1. Select elements

2. Specify elements

3. Calling code

Three types of event binding elements

1. HTML Event handlers

2. Traditional DOM event handlers

3. DOM Event Listener

Javascript&jquery.dom Events

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.