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

Refresh parent when popup is closed?!?! 2

Status
Not open for further replies.

hpadwal

Programmer
Feb 6, 2006
57
GB
hello all,

I would like to close the popup window when the close button is clicked, and then refresh the parent so all the updated detals show.

<script language="JavaScript">window.close();</script>


<script language="JavaScript">window.opener.location.reload();</script>

problem I am having is that when the site is posted live, the script closes the top window and the reloads the same window (i think)

Can you help?


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

To be successful in life, you must think your less then the person next to you?!?!?!?!

 
you will want to try to do something like this:

Code:
<a href="#" onclick="opener.location.reload(true); window.close(); return false;">Close Me</a>



*cLFlaVA
----------------------------
[tt]I already made like infinity of those at scout camp...[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top