Sort Javascript event response learning notes _ javascript skills

Source: Internet
Author: User
Sort out the Javascript event response learning notes. a series of previous articles are about understanding Javascript. This article is to learn more about javascript process control statements. I hope you will continue to pay attention to it. What is an event?

JavaScript creates a dynamic page. Events are behaviors that can be detected by JavaScript. Each element in the web page can generate events that can trigger JavaScript functions or programs.

1. click the event (onclick)
Onclick is an event that occurs when you click the mouse on a webpage. At the same time, the block called by the onclick event will be executed and usually used together with the button.
For example, when you click the button, the onclick event is triggered and the add2 () function of two numbers is called ().


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