vishnu vishnu - 1 year ago 66
HTML Question

How do we know how many popups are open?

In my application, window opened pop1, pop1 opened pop2 and pop2 opened pop3. I am in pop3. How i know how many windows/popups opened before pop3 in jquery or javascript

Answer Source

I figured out. It might helpful for any one who looking for the answer. In below code count will give the answer to find the no of windows to open.

popup = this;count=0;
if( != popup.self)
 popup = popup.parent;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download