View Full Version : Changing more Iframes when click - back in browser only takes one page back - please

03-22-2005, 04:14 PM
Hi I have a page that holds 2 iframes and a menubar in a table between.
I have a top Iframe that holds a flash animation. In the middle I have a table with a menu and a bottom Iframe that holds the content.
I have the following code for the iframes.

This is for using two pages at one click
<script language="javascript">
function loadTwo(iframe1URL, iframe2URL)

This is the code for the iframes 1 and 2
<iframe name="FRAME1" src="top_home.htm" width="800
" height="305" scrolling="NO" frameborder="0"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">[Din browser understøtter ikke frames. Få dig en ny <a href="http://www.microsoft.com">her!</a>]</font></iframe>

I have a script so that when I click on a button in the menu the top Iframe changes and then also the bottom Iframe changes the main content. The works fine but if I click on the back bottom in the browser the only thing that changes is the bottom Iframe and not also the top. How can I make the page change both in the top and the bottom?

This is on each buttons
<a href="javascript:loadTwo('spillere_top.htm','spillere_bund.htm')" target="_top" onClick="MM_nbGroup('down','group1','spillere','images/spilleredown.gif',1)" onMouseOver="MM_nbGroup('over','spillere','','',1)" onMouseOut="MM_nbGroup('out')"><img src="images/spillere.gif" alt="Spillere" name="spillere" width="79" height="27" border="0" onload=""></a>

Thanks for all the help - please
Lars Gravesen

BTW. I also have a script for a down function on the buttons in the menu and I would also like this to “release” the down function for the button.