Event delegation with vanilla JavaScript

Поделиться
HTML-код
  • Опубликовано: 3 апр 2023
  • Source code for this tutorial: gist.github.com/cferdinandi/4...
    Hate the complexity of modern front‑end web development? I send out a short email each weekday on how to build a simpler, more resilient web. Join over thousands of others at gomakethings.com.

Комментарии • 6

  • @joshwallis9366
    @joshwallis9366 5 месяцев назад

    I've been pulling my hair out all day looking for this exact solution (I wanted to close my hamburger menu when clicking outside of it), thank you very much!

    • @gomakethings
      @gomakethings  5 месяцев назад

      Aww hell yea! I love when that happens!

  • @AhmedNagy-fg6yg
    @AhmedNagy-fg6yg 11 месяцев назад +1

    thanks a lot ,very clear explanation

    • @gomakethings
      @gomakethings  11 месяцев назад +1

      You're welcome, glad you enjoyed it!

  • @bxlbjorn
    @bxlbjorn 8 месяцев назад

    It took me only 15 years of web development to learn about event delegation...

    • @gomakethings
      @gomakethings  8 месяцев назад +1

      Better late than never, friend! ❤