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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change parent window url 1

Status
Not open for further replies.

jockey

Programmer
Nov 18, 2003
34
GB
Is there a way that when a popup window is closed you can cange the url of the parent that opened it??
 
yes in the popup window file:
<body ...... onunload="window.opener.location.href='TheLocation'">

Known is handfull, Unknown is worldfull
 

Try this in your popup:

Code:
<body onunload="window.opener.location = 'newUrl.html';">

Hope this helps,
Dan
 
aha, i beat u... ;)

Known is handfull, Unknown is worldfull
 
also ... you almost had it written in the question itself...


parent.location = "url";

will also work

[thumbsup2]DreX
aKa - Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top