Skip to main content

One doc tagged with "events"

View all tags

Event handling

Covers registering event listeners with addEventListener, the once / passive options, event propagation (capturing and bubbling), and event delegation using closest, organized with practical examples and diagrams.