Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

closewindow / redirect previous browser

Status
Not open for further replies.

greengrassbrian

Technical User
Mar 26, 2004
33
US

I'm building a site tour that pops up in it's own window from the home page of it's site. at the end there will be several buttons that the client wants to redirect the url of the original page and close the popup window.

I've got this script to close the window, now how do i give the former browser a new url?

on (press) {
getURL("javascript:window.close()");
}
 
Code:
on (press) {
   getURL("javascript:redirectAndClose('[URL unfurl="true"]http://www.google.com/')");[/URL]
}

And then in your HTML:

Code:
<SCRIPT LANGUAGE="JavaScript">
<!--
function redirectAndClose(url) {
   window.parent.location.href = url;
   window.close();
}
//-->
</SCRIPT>


I REALLY hope that helps.
Will
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top