blueshaolin
asked on
Check if window is popup or not
Hi, I need to detect if the current window is a popup or not.
I think opener won't work for me since I have already browsed some links in the window and I always get 'main window' after checking opener.
Thanks in advance !
I think opener won't work for me since I have already browsed some links in the window and I always get 'main window' after checking opener.
Thanks in advance !
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I didn't give enough information since I didn't know the page/window was a frame. The solution to the given problem is right!
glad you found it. Thanks for giving me the credits still for answering to the original q. :)
ASKER
Solution: check window.parent.opener