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.locatio n='./Tgce. htm'" onMouseover="window.status ='Informat ion
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.
link is clicked:
<a href=./gce1.htm onClick="top.title.locatio
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.
ASKER
Coolness but where do I put the new bit of code in relation to the code in the question?
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.
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.
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
Bigelos: A JavaScript answer?
Michel
Michel
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
top.framename.back() or top.framename.go(-1)