Opera and Firefox both run the following function perfectly as expected but IE7 opens a new whole page window and complains about ActiveX, requiring an acceptance by the user before the 'Close Window' button will work. Any suggestions gratefully accepted.
function popup(mylink, windowname, w, h)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
settings="width=" + w + ",height=" + h + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";
window.open(href, windowname, settings);
return false;
}
A sample call to the function would be:-
<span class="link2"><a href="070595.html" target="_blank" onClick="return popup(this, 'Item 070595', '400', '420')">Larger Image...</a> </span>