JavaScript Tutorial

Event Bubbling

Phase of event propagation where the event moves from parent to child elements.

document.querySelector('ul').addEventListener('click', e => {
  console.log('Bubble:', e.target);
}, false); // false indicates bubbling phase