javascript window.close, once again
- by John Kjøller
Im sorry if I havent done my research properly, - but couldnt find the answer I needed, so here goes:
From my main page I open a new window using mainPlayer = window.open();
This window stays open until user clicks on a mainPlayer.close(); event. (or simply x closes the window)
However, the idea is to make it possible to let the player keep playing, while browsing around the rest of the pages.
But as soon as the user leaves the page that opened the mainPlayer window, the reference to the mainPlayer window seem to be lost.
How do I, from the site's other pages, check if the mainPlayer window is open and close it on a click event?
Thx
John