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!

How to refer to the parent frame window

Status
Not open for further replies.

bnymk

Programmer
Feb 7, 2003
296
0
0
US
Hi all:

I have parent window that has three frames. In the middle frame there is a link that will bring up another window that has two frames in it. After a user adds some values in the child window, I want to create a button where user can click and be able to close the current (child) window and refresh the parent window. I can close the child window by implementing top.window.close(); inside a function but I also would like to refresh the parent window. Any idea on how I can be able to refresh the parent window which also has frames?????

Thanks!!
 
try to reload the parent page not refresh.

<script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;>
parent.name_of_middle_frame.location.href = &quot;pagename.html&quot;;
</script>

HTH
Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top