Html – How to detect if any modal <dialog> is open?
I have a page with multiple <dialog> elements, which I open as modal using their showModal() methods. I want to detect whether any of them is currently opened from Javascript (since some event handlers shouldn't trigger when a modal is…