Justin Searls
- 3mo ยท
-
Publicยท
-
mastodon.social
TIL that inline JavaScript handlers actually define an `event` variable for you:
This actually works:
ใa onclick="event.preventDefault(); this.closest('dialog').close()"ใ
Maybe everyone else knew this, but it took me over 25 years apparently.