Problems with Popup Window in IE
I am having an issue with popup windows. I have about 50 thumbnail images that I need top open a popup window in which I use ASP to populate different results from a database. My images are linked like this:
<a href="../../show_make_dealers.asp?tag=AL&make=Acura" onClick="return popup(this, 'Acura Dealers')"><img src="../../images/acura.gif" border="0"></a>
The function looks like this:
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=710,height=450,left='+(screen.width-500)/2+', top='+(screen.height-300)/2+', resizable=no, scrollbars=yes, toolbars=no, location=no, directories=no, status=no, menubar=no, copyhistory=no');
return false;
}
It works in firefox fine, but when I attempt to use this in IE it just opens in the same window, any ideas?
|