Susie Posted June 7, 2009 Report Share Posted June 7, 2009 On some websites, when I click the back button, I am taken right back to the spot in the page where I was reading. Sometimes, however, I'm taken to the top of the page and have to scroll back down to where I was. I don't see anything in the code that controls that, but maybe I'm missing it. How can I always make sure users are returned to the spot where they were reading rather than the top of the page? Quote Link to comment Share on other sites More sharing options...
lm Posted June 7, 2009 Report Share Posted June 7, 2009 Susie, you might see the address like: back to maincontent div, so when somebody click, he'd go to this particular part where main contens begins. Quote Link to comment Share on other sites More sharing options...
Wickham Posted June 7, 2009 Report Share Posted June 7, 2009 I think LM's code only works where you have coded a "Back" button into your page; then you can use an anchor. If you want to control the BROWSER back button, then I didn't think this was possible, but I found this question answered here http://forum.joomla.org/viewtopic.php?f=471&t=366662&start=0 Quote Link to comment Share on other sites More sharing options...
lm Posted June 7, 2009 Report Share Posted June 7, 2009 I think it would work if the full address used as well: back to somecontent div on About page Quote Link to comment Share on other sites More sharing options...
rudyten2000 Posted June 7, 2009 Report Share Posted June 7, 2009 On some websites, when I click the back button, I am taken right back to the spot in the page where I was reading. Sometimes, however, I'm taken to the top of the page and have to scroll back down to where I was. I don't see anything in the code that controls that, but maybe I'm missing it. How can I always make sure users are returned to the spot where they were reading rather than the top of the page? It might have to do with whether the page you are returning to is cached or not cached. On My static pages which get cached.. I always return to Last Spot but on my Dynamic pages which are not cached. I always returned to the Top Quote Link to comment Share on other sites More sharing options...
Susie Posted June 8, 2009 Author Report Share Posted June 8, 2009 I'm definitely not talking about anchor links. I mean...you are reading on a page, scrolling down the whole time, and you click on a link. After you are finished reading the new stuff at the link, you click the Back button. Sometimes you are taken right back to where you left off and sometimes you are taken to the top of the page. The cache idea is interesting. I wonder if that has something to do with it. Although, I just did a little test and all my sites that are powered by Wordpress take you back to where you left off. However, the sites powered by CMS Made Simple do not. Hmmmmmm........ More investigation..... Quote Link to comment Share on other sites More sharing options...
PicnicTutorials Posted June 8, 2009 Report Share Posted June 8, 2009 Maybe it has to do with if you've actually clicked on a link within that page. Maybe thats what brings you back to that spot (where the link was)? Verses not, or using the back/forward button. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.