Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

back button problem

Status
Not open for further replies.

sundemon

Programmer
Aug 11, 2001
125
hi.
I have a site using nested frames that has a problem when users use the back button on their browsers.

an example can be found at
This site uses 3 levels of frames:
the first holds the "logo", and a sub-frame that holds:
navigation, and a sub-frame that holds:
content for a particular section.

In situations where a user reloads an entire frame, e.g. using the navigation frame, the back button works as expected.

But when the user open a link in one of the sub-pages of a frame, using the back button causes the entire parent to reload, as opposed to the single page relpaced by the link.

To demonstrate at the example site, go to "organizers" via the main navigation at left, then click one of the links in the content page at right (e.g. one of the "committee" pages). If you use the back button you'll see the problem.

Can anyone advise me how to either control or disable the behavior of the back button in situations like this?

Any help is greatly appreciated.

sundemon
 
<a href=&quot;#&quot; target=&quot;framename&quot; name=&quot;Back&quot; title=&quot;Go Back&quot; onclick=history.go(-1)>Go Back</a>

I use the following on the pages displayed in frames. This will take them back to the page previously viewed in the same frame
Hope this helps
Ian It's not a lie if you believe it!

 
Thanks so much Ian, I'll try it out.
I found since my first post that it was an IE specific problem.
sundemon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top