View Full Version : window.spawn.focus

07-04-2005, 07:30 PM
Hi... im having trouble with doing a popup window that will not reload.
the deal is that i want a regular popup such as
and this new window has a button that sets window.opener.focus(), so it sends u back to the previous window...
now IF i want to go back to the NEW window, how can i do that without reloading the page? i cant use window.open again, or is there a way to focus the window using the name defined?!

Mr J
07-04-2005, 08:30 PM
Assign your popup to a variable (windowHandle) then have a link in the opener to refocus it


<a href="#null" onclick="myWin.focus()">Focus Popup</a>

07-04-2005, 09:33 PM
thats what im doing for now, but that stills reloads the "blabla" page... i dont want it to be reloaded

Mr J
07-04-2005, 11:14 PM
If its reloading the popup you cannot be doing as I suggested because

<a href="#null" onclick="myWin.focus()">Focus Popup</a>

only refocuses the popup

Can you post all the code relating to the popup