I have the following pop up code in my main page:
var win = null;
LeftPosition = parseInt( (screen.width) ? (screen.width-w)/2 : 0);
TopPosition = parseInt( (screen.height) ? (screen.height-h)/2 : 0);
win = window.open(mypage,myname,settings)
<a href="mypopup.htm" onclick="NewWindow(this.href,'theWindow','416','337','no');return false">OPEN IT!</a>
It is working great and cross browser
In mypopup.htm I have:
self.opener.location = url;
And this loads anotherpage.htm in the main page where the OPEN IT! link is. This is the way it has to be, and works everywhere except for Safari. On Safari the contents of mypopup.htm show in the main page and there's no new window for the pop up, there's no pop up at all.
Can anyone please give me a hand to make it work on Safari???
Thanks a lot!!