DOM Events

DOM Events

HTML DOM allows JavaScript to react to HTML events. A JavaScript can be executed when an event occurs, such as when a user clicks on an HTML element.
This list shows just a few examples of HTML events.
- button click
- mouse move
- form submit

When an event occurs on a target element, a handler function is executed.
Common HTML events:
posted @ 2016-04-18 11:26  kakaguo  阅读(166)  评论(0编辑  收藏  举报