MattG1225
11-01-2002, 08:11 PM
I have a web page with a link that opens a popup window. Within that window is another link that should open in the parent window and close the popup window. Is there an easy script I can insert within the link or onto the page??
Thanks
MattGooding@onlinehes.com
PauletteB
11-01-2002, 10:12 PM
One way
Inside your main page:
<a href="popupPage.html" target="popup"
onClick="window.open('','popup','scrollbars=yes,resizable=yes,width=300,height=300,left=0,top=0')">Open Pop Window</a>
Inside your pop-up:
<a href="javascript:void(0)" onClick="window.close(); parent.opener.location='anotherPage.html'">Close</a>
This opens a pop-up, and when you close the pop-up, the parent is now replaced with anotherPage.html. Change window parameters.
(Forum may add spaces)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.