摘要:
Event Listeners The addEventListener() method attaches an event handler to an element without overwriting existing event handlers.You can add many eve 阅读全文
posted @ 2016-04-18 11:30
kakaguo
阅读(574)
评论(0)
推荐(0)
摘要:
Handling Events There are several ways to handle events, including the following.Write the code directly into the HTML. <button onclick="alert('This i 阅读全文
posted @ 2016-04-18 11:28
kakaguo
阅读(110)
评论(0)
推荐(0)
摘要:
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 HTM 阅读全文
posted @ 2016-04-18 11:26
kakaguo
阅读(176)
评论(0)
推荐(0)