Last active
August 29, 2015 14:21
-
-
Save kyrasteen/1f3d2316499aee245f53 to your computer and use it in GitHub Desktop.
Lightning talk on JavaScript Event handlers, listeners, and custom events.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Javascript Events | |
#### Global Event Handlers | |
Definintion: function registered on... of attributes or properties | |
common examples: | |
+ click | |
+ hover | |
+ mouseover | |
+ keydown/up | |
#### Event Listeners: addEventListener | |
Definition: registers specified listener on event target. | |
example: | |
"" | |
why the third argument (false)? (capturing, bubbling) | |
### Prevent Default | |
Description: prevent automatic/default events to happen | |
example: form validation example | |
### Timers to work with asynchronous code | |
### defining custom event handlers | |
awesome! | |
example: "" | |
### Dev Tools and Events |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment