actually it seems to work in IE mac (and im assuming on PC) but this doesnt work on safari on mac, any ideas why that is?
altered code is:
<script type="text/javascript">
//<![CDATA[
function popup(url,windowname,width,height) {
width=(width)?width:screen.width/3;
height=(height)?height:screen.height/3;
var screenX = (screen.width/2 - width/2);
var screenY = (screen.height/2 - height/2);
var features= "width=" + width + ",height=" + height;
features += ",screenX=" + screenX + ",left=" + screenX;
features += ",screenY=" + screenY +",top=" + screenY;
window.name = "main";
var mywin=window.open(url, windowname, features);
if (mywin)
mywin.focus();
return mywin;
}
//]]>
</script>
and in the pop up
<a href="http://www.mylink.com" target="main" onclick="self.close();">Link</a>