posted 14 years ago
I'm creating a site with a main page and a pop-up window. I'd like to put a button on the pop-up to open the main page if it's not already open (in case the user got to the pop-up through a search engine, for example).
So I'd like the button to check to see if the main page is open, if it's not, it should open the main page in a new window, if it is, it should give the main page focus.
How can I do that?