Click to See Complete Forum and Search --> : Javascript Popups


pointypuss
02-16-2003, 05:13 PM
I think this is a common issue so maybe someone has the answer...

http://www.planetworkers.org/beta/home.htm

Open a popup (using top nav) and then click back on the main window; the popup disappears behind the main window. Now click on another link. The new link opens in the popup, but it stays behind the main window... so the user does not realize that the link has been opened in the hidden popup.

Is there a way to:
(1) Make the already-open popup jump to the front on the second click
(2) Auto close the popup when I return to the main window

Also, please state if know if your suggestion / solution is or is not cross browser and platform safe.

Tanks.

Dan Drillich
02-16-2003, 05:28 PM
Please use the search function above. If you search for 'popup' you'll get 310 topics :)

pointypuss
02-16-2003, 08:21 PM
310 results, yes.

Something directly related to my question (or the time to read through all 310 results), no.

Is there no help on this from anyone out there? It seems like a fairly straight forward question and a common issue.

Nevermore
02-17-2003, 04:41 AM
To make the popup come to the front:

popup_window_name.focus();

placed in the main window.

To close it:

onFocus="popup_window_name.close";

In main window.

pointypuss
02-18-2003, 10:27 AM
Where exactly would I place that code?

the site is at:

http://www.virmalo.net/beta07