Tengo el siguiente pop up en mi página principal:
Código:
Funciona genial y cross browser.<script language="javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = parseInt( (screen.width) ? (screen.width-w)/2 : 0);
TopPosition = parseInt( (screen.height) ? (screen.height-h)/2 : 0);
settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=yes';
win = window.open(mypage,myname,settings)
}
</script>
</head>
<body>
</body>
<a href="mypopup.htm" onclick="NewWindow(this.href,'theWindow','416','337','no');return false">OPEN IT!</a>
En mypopup.htm tengo:
Código:
Que carga anotherpage.htm en la página principal donde está el link OPEN IT!. Así tiene que funcionar, es lo correcto, lo que quiero que haga, y lo hace en todos los navegadores menos en Safari. En Safari los contenidos de mypopup.htm se muestran en la página principal directamente, sin pop up, sin una ventana nueva. <script language="javascript">
function loadinparent(url){
self.opener.location = url;
self.close();
}
</script>
</head>
<body>
<a href="javascript:loadinparent('anotherpage.htm', false);" >go to another page</a>
¿¿Qué puedo hacer para que funcione en Safari???
¡Muchas gracias de antemano!

