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

Reload on window.opener

Status
Not open for further replies.

NounOfTheWood

Programmer
Jul 1, 2003
1
0
0
FR
Hy,

1 : I have a main window and i call a window.open(...) to have a popup
2 : On the popup window, I work on a form when i am done i validate it and if the result is ok i need to make a refresh on the main window ...
3 : I did a javascript function with plenty try to do it :
top.frames(main).location.reload();
window.opener.parent.top.main;
4 : On the popup after checked my results from the form, I put on my <body onload= ...> this function

I tried a lots of things, nothing works...

Please help ....

Thx

Noun of the Wood
 
Give this code in ur popup window upon validation.
window.opener.location.href=window.opener.location.href
It refreshes the parent page.
 
here is how we used to do refreshes of the parent screen upon closing a popup. This code is in the popup window page, not the parent webpage.

function RefreshWindow()
{

opener.location=&quot;pagename.asp&quot;;

window.close();
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top