Popup Focus

Ok i have this code in my head

<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=150,height=200,scrollbars=no');
return false;
}
//-->
</SCRIPT>

and i have script like this on each link

<a href="pic.jpg" onClick="return popup(this, 'notes')"><img src="picthumb.jpg" width="40" height="50" border="0"></a>

Now i have more then one “thumb pic” on the page I have multiple thumbnails linking do differnt images. Problem is if the popup window loses focuse it goes behind the main page and then the links look like there aren’t working.

How can i keep my popup window’s focus in front?

The links are not linking to htm pages the are linking to the jpg’s them selves so there is no way to put code in them.

so any ideas?

Try changing

window.open(href, windowname, 'width=150,height=200,scrollbars=no');

to

window.open(href, windowname, 'width=150,height=200,scrollbars=no').focus();

LIB is there some where we can send you gifts or something.

lol, of course there is, i’m not homeless :stuck_out_tongue:

But there’s no need for that :wink:

Sorry I didn’t see this thread sooner.