Event Capturing
The phase in which an event travels from ancestors down toward its target.
What is Event Capturing in JavaScript?
Event Capturing — The phase in which an event travels from ancestors down toward its target.
list.addEventListener("click", event => {
const item = event.target.closest("li");
selectItem(item);
});
Level: Freelancer · More JavaScript terms at this level
Updated