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

Refresh Frames 1

Status
Not open for further replies.

hillbillyfritz

Technical User
Mar 28, 2001
34
US
Is there a way to refresh a frame from a different frame or the index? I have a frame that some links go to and I want to occasionally refresh the frame back to how it was when the page loaded. Thanks.
 
from "the other frame" :
---
top.name_of_the_frame.reload()
top.name_of_the_frame.reload(true) if you want to force the refresh


 
Thanks, is there a way to control how often it refreshes?
Also, should it look like this?

<script language=&quot;JavaScript&quot;>
top.right.reload(true)
</script>
 
sorry i didn't see your answer
to control &quot;how often it refreshes&quot; just control how often you call it !!!!
and you'd better not let it in the head part like this <script language=&quot;JavaScript&quot;>
top.right.reload(true)
</script>

as it'll keep reloading the &quot;right&quot; frame

for instance, if you want to call it on a action such as onclick :
<tag .... onclick=&quot;top.right.reload()&quot;>


 
thanks for all of the help so far but now i'm really confused. i just want the frame (right) to go to back to right.html every 60 seconds but since the frame has gone to a totally different page i have to control it from somewhere else. thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top