Skip to content

Instantly share code, notes, and snippets.

@kyrasteen
Last active August 29, 2015 14:21
Show Gist options
  • Save kyrasteen/1f3d2316499aee245f53 to your computer and use it in GitHub Desktop.
Save kyrasteen/1f3d2316499aee245f53 to your computer and use it in GitHub Desktop.
Lightning talk on JavaScript Event handlers, listeners, and custom events.
### 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