Ancestors

Written by Mayank on 2025-01-27 at 22:24

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

Toot

Written by DoomyTheFroomy on 2025-01-28 at 05:53

@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

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113904425818767687
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
255.380923 milliseconds
Gemini-to-HTML Time
0.340081 milliseconds

This content has been proxied by September (3851b).