is there a way to listen to the "opening" of top-layer elements without patching globals?
i want to run some code whenever a <dialog>
or popover
opens.
(sorry if i'm out of the loop)
[#]WebDev #HTML #JavaScript
=> More informations about this toot | More toots from mayank@front-end.social
@mayank I would try an Observer, perhaps the MutationObserver. But never tried! https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver
=> More informations about this toot | More toots from DoomyTheFroomy@toot.berlin
text/gemini
This content has been proxied by September (3851b).