My situation is this:
I open a popup, or a new browser tab.
Then I refresh the window that opened popup/new tab.
So my code runs again in window opener so I cannot save reference to opened popup/tab there.
I could use cookie but I would need to remove cookie when I close popup/tab, and I dont think there is a way to detect this, that the popup/tab has closed (cross browser of course, and ios!)
If I could save a popup/tab window name reference then I could check in window opener if popup/tab I have opened still exist?