Page 1 of 1

refresh the frame above automatically

Posted: Thu Mar 20, 2003 10:10 pm
by Sevengraff
Im not sure how to do this, but in my frame page...

<HTML>
<FRAMESET ROWS="80%,20%">
<FRAME SRC="one.html">
<FRAME SRC="two.html">
</FRAMESET>
</HTML>

what do i put in two.html so that one.html gets refreshed when one.html is loaded?

Posted: Fri Mar 21, 2003 3:19 am
by haagen
This is how I would do it.

First give the frames names; one and two.

Then in to you'll write a small script.

Code: Select all

<script language="JavaScript">
<!--
function reloadone()&#123;
  parent.one.document.location.href = "one.html";
&#125;
-->
</script>
<body onLoad="reloadone()">
I haven't tested the code above, but I have used the idea sometimes and it works well.

Good luck!