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.
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!
Aww hell yea! I love when that happens!
thanks a lot ,very clear explanation
You're welcome, glad you enjoyed it!
It took me only 15 years of web development to learn about event delegation...
Better late than never, friend! ❤