Event Listeners in JavaScript - JavaScript Events Tutorial

Event Listeners in JavaScript - JavaScript Events Tutorial

Dave Gray via YouTube Direct link

Using a function name in the event listener

4 of 16

4 of 16

Using a function name in the event listener

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Event Listeners in JavaScript - JavaScript Events Tutorial

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Insure the DOM is available to interact with
  2. 2 How to load your script for DOM interaction
  3. 3 3:30 Syntax: addEventListenerevent, function, useCapture
  4. 4 Using a function name in the event listener
  5. 5 5:55 Removing a function with a name: removeEventListener
  6. 6 Using an anonymous function in the event listener
  7. 7 Listening for the readystatechange event
  8. 8 Constructing an initApp function
  9. 9 Event Bubbling
  10. 10 Event Capturing
  11. 11 Event Propagation and stopPropagation
  12. 12 event.target usage
  13. 13 classList, add, remove, and toggle
  14. 14 Listening for a HTML Form submit event
  15. 15 HTML Form default behavior
  16. 16 Prevent default behavior with event.preventDefault

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.