Hello...
i have a script that opens up a popup window... Once the popup window opens... i have a link on it that goes to another page... when i click the link it opens the page inside the popup window... can someone help me with my code so that when i click on the link, the popup window closes and the url opens up in my original browser window?
THANKS KIM
Page 1:
<script>
var win= null;
function NewWindow(mypage,myname,w,h){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl;
win=window.open(mypage,myname,settings);
if(parseInt(navigator.appVersion) >= 4){win.focus();}
}
</script>
<body onUnload="closePopWin()">
<a href="javascript" onmouseover="NewWindow(' true" ><strong> ENTER </strong></a>
Popup Window:
<a href="gatekeeper-in.html"><img src="Images/ae2.jpg" width="122" height="122" border="0"></a>
i have a script that opens up a popup window... Once the popup window opens... i have a link on it that goes to another page... when i click the link it opens the page inside the popup window... can someone help me with my code so that when i click on the link, the popup window closes and the url opens up in my original browser window?
THANKS KIM
Page 1:
<script>
var win= null;
function NewWindow(mypage,myname,w,h){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl;
win=window.open(mypage,myname,settings);
if(parseInt(navigator.appVersion) >= 4){win.focus();}
}
</script>
<body onUnload="closePopWin()">
<a href="javascript" onmouseover="NewWindow(' true" ><strong> ENTER </strong></a>
Popup Window:
<a href="gatekeeper-in.html"><img src="Images/ae2.jpg" width="122" height="122" border="0"></a>