Q591 How do you reload a page in frame 2 from frame 1?
Quote:
Try something like:
<A HREF="javascript:parent.framename.location.reload( )">Reload</A>
where framename is the name of frame 2.
Alternatively, you can use the frame index number (1st frame is 0, 2nd frame is 1..., nth frame is n-1), combined with a simple test to see if the browser supports the locaton objects reload() method:
<script language="JavaScript"><!--
function reloadFrame(number) {
if (document.images)
parent.frames[number-1].location.reload();
else
parent.frames[number-1].location.href = parent.frames[number-1].location.href
}
//--></script>
<a href="javascript:reloadFrame(2)">Reload</a>
|
================================================== ==========
Excuse me for being greener than greenhorn. According to the suggestions given there,
the code is used to "
reload a page in frame 2 from frame 1".
But what I need is to
reload frame 2 and frame 3 from frame 1 at the same time (ie. with only
one click of the mouse in frame 1).
How should I modify the code to make it so that?