Click to See Complete Forum and Search --> : Refresh both frames


duncan121
09-24-2003, 04:57 AM
Hi,

I have a small problem...

I have 3 frames. I need to be able to refresh 2 frames when a submit is clicked.

I upto now have used the code below.

echo '<meta http-equiv="refresh" content="2;URL='.$PHP_SELF."?status=topic".'">';

But... I know a "meta" can not refresh 2 frames.

Also I know almost nothing about javascript.

So how do I get round this problem. I have seen loads of information on this over the net but NO real answers.

Please help

AdamBrill
09-24-2003, 07:32 AM
Something like this should do:<input type="button" onclick="top.frame1.document.location=top.frame1.document.location; top.frame2.document.location=top.frame2.document.location">