Forum Moderators: open

Message Too Old, No Replies

taking control of the back button

         

tekomp

7:24 pm on Apr 8, 2006 (gmt 0)

10+ Year Member



Say I'm storing a users click path in a session/db/etc, and they want to go back a page, well, since this is a complete ajax app, the back button won't work as the user expects. Is there a way to create a hook into the back button so my app will bring the user back to what they were previously on?

tekomp

7:25 pm on Apr 8, 2006 (gmt 0)

10+ Year Member



And I suppose a hook into the forward button as well if they already clicked 'back'.

DrDoc

7:48 pm on Apr 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If a site is designed right, the browser's back and forward buttons work well.
Trying to control something which is already established behavior is bound to break one way or the other somewhere.

If back/forward appears broken on your site, fix your site. ;)

Besides, there's no reliable or easy way of "fixing" back button functionality across all browsers and user settings, as things like caching etc may change things entirely.