国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

The concept of JavaScript events

The so-called event means that JavaScript captures the user's operation and makes the correct response. For example, the user clicks the mouse to pop up a window, and moves the mouse to an element to cause changes.

JavaScript events are generally bound to DOM elements.

The basic mechanism of JavaScript event processing:

1. Bind event processing functions to DOM elements;

2. Monitor user operations;

3 .When the user performs an operation corresponding to the bound event on the corresponding DOM element, the event processing function responds;

4. Update the processing results to the HTML document.

QQ截圖20161013104040.png


Continuing Learning
||
<html> <head> <title>彈出警告框</title> </head> <body> <input onclick="myAlert()" type="button" value="點擊我,彈出警告框" /> <script type="text/javascript"> function myAlert(){ alert("謝謝支持"); } </script> </body> </html>
submitReset Code