Forum Moderators: open

Message Too Old, No Replies

onload problem

         

tonyf

11:01 am on Feb 18, 2004 (gmt 0)

10+ Year Member



Can anyone help?

I have a website that uses 4 frames header, menu1, menu2 and main. I need to load a new set of buttons in frame(menu2) when the page in frame(main) is loaded. Everytime I get it to work it loads the buttons in the frame(main) and removes the the page that I require.

RonPK

1:22 pm on Feb 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In the page that loads into the frame 'main':

<body onload="parent.frames.menu2.document.location = 'pagewithbuttons.html'">

I remember making a site once that also had two menus in separate frames. Interacting menus. The buttons in the menus had to change depending on the page loading in the main frame. I worked it out eventually, but decided *never* to create such a mess again. So, please take my advice: don't do this! Keep it simple.

tonyf

1:51 pm on Feb 18, 2004 (gmt 0)

10+ Year Member



Many thanks RonPK. I understand what you are saying about *never* doing this, but this has been asked for by the BOSS.

When the boss speaks we all bow down!