illustration for Your Ultimate Guide to Understanding DOM Events
pro

Your Ultimate Guide to Understanding DOM Events

Instructor

Alex Reardon
2h 9m closed-captioning
Updated a month ago
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
5.0
42
people completed
Bookmark
Download
RSS

Listening to and responding to events is a foundational skill for building software for the web. The Document Object Model, or DOM for short, has a powerful built-in event system. And yet, many of us have a pretty basic understanding of the DOM event system and only scratch the surface of the available power.

This lack of understanding leads to bugs in our applications and writing lots of code to work around the DOM event system rather than leveraging it. The goal of the course is that you will walk away with the confidence to successfully and meaningfully engage with the DOM event system.

The DOM Event Visualizer

The DOM event visualizer domevents.dev will be used to explain many behaviors throughout the course. You are welcome to play with the visualizer yourself to continue your learning.

The DOM event visualizer

🌱 This is a Fresh Course

Whether you are just starting out with frontend engineering or you are a seasoned veteran, this course will provide a strong understanding of how the DOM Event system works and how to leverage it successfully.

Credits

Maxime Bourgeois (illustration)

What you'll learn:

  • What events are and how they flow through the DOM
  • How to listen and respond to events
  • The order in which event listeners are called
  • The information available to us in event objects
  • Cancelling events
  • Stopping events
  • Manually creating events
  • How events work with the Event Loop
  • Understanding synchronous and asynchronous events
  • Understanding passive events
  • Understanding the event delegation pattern
  • And how to debug and examine events in the browser

Questions to Reflect Upon:

  • When should I override default behaviors?
  • How should I handle errors?
  • What level of control do you need to build successful solutions?

Learner Reviews

  • Learner
    a month ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Definitly a must for any developers working with the browser, frontend and JavaScript.

    It's incredible.

    HTML, DOM Events, JavaScript, callback queue, event loop, microtask queue and much, much more!

    Mind-boggling!

    Grateful for this.

  • Learner
    2 months ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    How will you use what you learned from this course?

    Amazing course on DOM Events, as if I was doing all wrong until now. Highly recommended!!!

  • vassiliskrikonis
    2 months ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    How will you use what you learned from this course?

    I have a feeling that my project is gonna be more responsive now on with those passive listeners 🤩

  • Luis Confraria
    2 months ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    How will you use what you learned from this course?

    Loved the level of detail on this! thank you!

  • Billy Le
    2 months ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    How will you use what you learned from this course?

    I enjoyed watching this course and seeing how using the DOM Events API to listen/dispatch events. However, I don't understand how to use this in the real-world since I work with JavaScript frameworks like React.

  • Baskin Tapkan
    2 months ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    How will you use what you learned from this course?

    In depth discussion of DOM events, event listeners, captures, target, and bubbles. Also nice discussion of Chrome Dev tools. This will help in figuring out creating custom events and handle user input as needed

Course Content

2h 9m • 28 lessons

    You might also like these resources:

    illustration for Introduction to Cloudflare Workers
    Kristian Freeman・36m・Course

    Become familiar with the Workers CLI wrangler that we will use to bootstrap our Worker project. From there you'll understand how a Worker receives and returns requests/Responses. We will also build this serverless function locally for development and deploy it to a custom domain.

    illustration for Create an eCommerce Store with Next.js and Stripe Checkout
    Colby Fayock・1h 4m・Course

    This is a practical project based look at building a working e-commerce store using modern tools and APIs. Excellent for a weekend side-project for your developer project portfolio

    illustration for Practical Git for Everyday Professional Use
    Trevor Miller・1h・Course

    git is a critical component in the modern web developers tool box. This course is a solid introduction and goes beyond the basics with some more advanced git commands you are sure to find useful.