Link to home
Start Free TrialLog in
Avatar of Spo0n
Spo0n

asked on

reload frame on back button click

i am currently using this line of code to alter the contents of a  title frame (in a three framed page) when a
    link is clicked:

    <a href=./gce1.htm onClick="top.title.location='./Tgce.htm'" onMouseover="window.status='Information
    on the Graduate Certificate of Education (Tertiary Education) (./gce1.htm)'; return true;"
    target=main>Graduate Certificate of Education (Tertiary Education)</a>    •<br>

     The three frames in the page are a menu down the left side, a title up the top of the right hand side and
    the main body for the remainder of the right hand side.  I need to find out how to replace the title frame
    with it's original image when the browser's back button is used.
Avatar of percyn
percyn

You can control the history of each frame as such...

top.framename.back() or top.framename.go(-1)

Avatar of Spo0n

ASKER

Coolness but where do I put the new bit of code in relation to the code in the question?
Avatar of Spo0n

ASKER

It IS working but i need to click the back button a couple of times to get the proper title frame up.  I kinda need it to update the title frame on the one click.  Getting close. :)
Update both with one back click means updating both windows at once.  Take a look at
http://members.tripod.com/~HTML_Expert/update_two_frames/1st_frame.html

and tell me if that is how you want your page to work.  If so, I'll tell you how to do it and post as answer.
Avatar of Spo0n

ASKER

That's just about perfect dude. The only difference in my page is that the menu on the left goes all the way to the top
Avatar of Michel Plungjan
Bigelos: A JavaScript answer?

Michel
ASKER CERTIFIED SOLUTION
Avatar of bigelos
bigelos

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you are really looking for a JavaScript solution, then you will have to create your own "back" button and use javascript to "back up" two frames.  The trick is in getting the user to press your back button instead of theirs.