My page has an image map divided into sections, clicking on any section opens a new html page all with the same name 'popup',
(window.open('1C.html', 'popup'),
with that section image enlarged.
So only 2 windows will be open maximum.
Since each clicked page loads into the same page name, how do I keep subsequent new clicked image page loads focus on top?
A new window automatically gets focus, but when a new page loads into the same window, it does not...
windowsnamehere.close();
and it IS possible or here is an alternate that will lock the back window.
in the body tag of the opener onFocus="changeView();"
in script
function changeView()
{
if(windownamehere.document)
windownamehere.focus();
}
Bookmarks