Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 2.33 KB

File metadata and controls

30 lines (23 loc) · 2.33 KB

Events

Custom events in vanilla JS 4/22
Custom Events with Vanilla JavaScript 8/24
🚀 Detecting If a User is Online/Offline with JavaScript 7/8
Vanilla JS event delegation with a lot of event handlers on one page 5/29
MDN Event reference 1/6/2020
What is that third argument on the vanilla JS addEventListener() method and when do you need it? 1/21/2020

.addEventListener() 'load', {capture: true}, {once: true}
.preventDefault()
.forEach()
.stopPropogation()
IntersectionObserver The Intersection Observer API provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport.
event.currentTarget() The currentTarget read-only property of the Event interface identifies the current target for the event, as the event traverses the DOM. It always refers to the element to which the event handler has been attached, as opposed to Event.target, which identifies the element on which the event occurred and which may be its descendant.