JavaScript Tutorial

Event Capturing

Phase of event propagation where the event moves from outermost element to target.

document.querySelector('ul').addEventListener('click', e => {
  console.log('Capture:', e.target);
}, true); // true indicates capturing phase