Tag view

#events

Cross-subject tag search for related interview cards.

Clear

Results update as you type. Press / to jump straight into search.

Tagged with events

2 cards

JavaScript Medium Theory

Events in JavaScript: event handling, addEventListener, bubbling, capturing, delegation, preventDefault, and stopPropagation

Browser events travel through capture and bubble phases, and good event handling often relies on delegation and controlled propagation.

  • `addEventListener` can listen in capture or bubble phase
  • Delegation reduces many per-node listeners
  • `preventDefault` and `stopPropagation` solve different problems

Events in JavaScript: event handling, addEventListener, bubbling, capturing, delegation, preventDefault, and stopPropagation