illustration for Your Ultimate Guide to Understanding DOM Events
pro

Your Ultimate Guide to Understanding DOM Events

Instructor

Alex Reardon
2h 9m closed-captioning
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.8
106
people completed
Published a year ago
|
Updated a year ago

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.

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.

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

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 Think About:

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

Learner Reviews

  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Fundamentals well explained. Graphical intuition. Comprehensive. 'The wierd parts',

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

    Among many clear and useful explanations; Alex had one of the best Event Loop demos,

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

    Learned almost everything I had to "google" to understand about DOM events everytime!

    Sung Kim
    2 months ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Great in depth course. Events being foundational to UI, this course really helps in working with frameworks as well.

    Vinayak Tyagi
    3 months ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    One of the best courses I've taken. Really well explained!

    Learner
    4 months ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Egghead is my favorite place for advanced topics. This course isn't different and pushed me to learn. Kudos to the visual tool created by the author, which illustrates events and its nuances throughout the DOM.

    Veller Bauer
    4 months ago

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.