addEventListener

  • The element.addEventListener method lets you define event listeners in JS
  • You can use it to keep HTML clean...
  • Or when you want to respond to an event in multiple ways

2 / 21