课程: JavaScript Essential Training
今天就学习课程吧!
今天就开通帐号,24,600 门业界名师课程任您挑!
Typical DOM events
- [Narrator] Everything that happens in the browser is an event. Opening the browser is an event, visiting a URL is an event, moving your mouse or clicking it or touching your screen is an event, scrolling is an event, clicking the back and forth buttons in the browser or reloading the document or hitting a key on your keyboard, anything and everything that happens in the browser is an event. And with JavaScript, we can listen for those events then capture them when they happen and do stuff when they are triggered. You can get a full breakdown of all available events in the MDN Event reference. Scrolling down this page you'll realize there are a lot of events you can monitor and any of these events can be monitored and when they are triggered you can do whatever you want as a result. Let me give you a basic example of what I'm talking about. In exercise files for this movie I've set up this very well designed web…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
-
-
-
-
-
-
(已锁定)
DOM events explained1 分钟 41 秒
-
(已锁定)
Typical DOM events5 分钟 35 秒
-
(已锁定)
Event listeners5 分钟 45 秒
-
(已锁定)
Practice: Experiment with event listeners1 分钟 32 秒
-
(已锁定)
Advanced event listeners and "this"6 分钟 12 秒
-
(已锁定)
Pass arguments through event listeners4 分钟 53 秒
-
(已锁定)
Challenge intro: Create an event listener2 分钟 15 秒
-
(已锁定)
Solution: Create an event listener6 分钟 16 秒
-
(已锁定)
-
-