Susie Posted June 7, 2009 Report 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?
lm Posted June 7, 2009 Report 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.
Wickham Posted June 7, 2009 Report 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
lm Posted June 7, 2009 Report Posted June 7, 2009 I think it would work if the full address used as well: back to somecontent div on About page
rudyten2000 Posted June 7, 2009 Report 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
Susie Posted June 8, 2009 Author Report 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.....
PicnicTutorials Posted June 8, 2009 Report 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now