How to get opened modal elements using Javascript?

Is there any way to get an opened modal using javascript? I don’t know any id, class name, tag name, or … but when I trigger an event of an element in a web site, a modal will popup. Now the question is: How can I get the ‘div’ or any element in this opened modal? Consider that, there is many hidden elements in the html body and when the event dispatches, these appear.

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.