I hate saying things which seem blindingly obvious, but when Famous Peopleโ„ข such as Theo on YouTube make these basic mistakes, I wonder. ๐Ÿง

So here you go:

`document.querySelector("# my-dumb-button").addEventListener(...)` is completely obsolete in the year 2025.

Never do that again please. You don't need to!

If you're wondering โ€œwell, what should I do instead?โ€, check the comments; we'll talk about what to do instead. Apparently it will BLOW YOUR MIND! ๐Ÿ˜‚

0

If you have a fediverse account, you can quote this note from your own instance. Search https://intuitivefuture.com/users/vanillaweb/statuses/114699990222553921 on your instance and quote it. (Note that quoting is not supported in Mastodon.)