I have a script that opens a popup in the same host.
The popup is opened with window.open(url,name,settings)
without assigning it to a variable.
I can't change the function that opens the popup and neither the code of the popup. But I can add extra Javascript code in the opener's load/ready event.
What I need is to know, from the opener, when the popup is open.
I know the name of the window, so if it's already open I can check it with:
var openedWin = window.open('', 'Selection');
But the problem is that when the window is not open, it tries to create a new window.
How can I implement a listener or something that let me check when a named popup window is opened?
Thank you!