Forum Moderators: phranque

Message Too Old, No Replies

On Load coming back to where left off

On Load returning to where left off on page

         

bmatth1

4:29 pm on Sep 9, 2003 (gmt 0)

10+ Year Member



When on a page, and you leave that page from a certain spot, is there a way to return back to the same position on the page where you left off? Each time I return to the page, it takes me to the top of the page. I am looking for a section of code that will prevent this, and allow me to return to where I left off.
Thanks,
Bob

korkus2000

12:50 pm on Sep 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you use anchor names like <a name="middle"> www.yourpage.com/page.htm#middle?

bmatth1

3:34 pm on Sep 10, 2003 (gmt 0)

10+ Year Member



I am not sure that this will take care of my problem. Let's say I am on a page that has a link about half way down on the page. I click on this link and it takes me to another page. When I return to the original page, using the back button on my browser, I would like to return to the location on that page where I left off - the middle of the page where the link resides.
Is there a way to do this?

jpjones

3:55 pm on Sep 10, 2003 (gmt 0)

10+ Year Member



Could you be experiencing this problem because your browser is requesting a new copy of the page every time you go to it, rather than using a version out of cache?

Take this forum, for instance. If I go to the recent posts list, scroll to the bottom, click on a post at the bottom, then press the back button, I see exactly the same as I did before - where my browser is at the bottom of the page.

However, if I force a refresh, my browser jumps back to the top.

What does your browser do?

jomaxx

4:48 pm on Sep 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Like jpjones, both Netscape and Explorer already work this way for me, as long as I use the back arrow.

Good point about re-requesting the page. Some users of my site are not able to cache pages (due to firewalls?), and reload a page from scratch every time. Maybe your system is set up like that.

bmatth1

4:49 pm on Sep 10, 2003 (gmt 0)

10+ Year Member



BINGO! Thank you.
Is there a way to insert code that would force an override to the browser setting so that this would not be an issue?

jomaxx

4:49 pm on Sep 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



P.S. If these are external links, you could always try opening them in a new window.