Detect if window exist by name

Is it possible to detect if window exist in javascript by window name?

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?

Thank you!



Read more here: https://stackoverflow.com/questions/21224953/detect-if-window-exist-by-name

Content Attribution

This content was originally published by Toniq at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: