Go Back to Previous Spot on PageI'm using list of page in one page sometimes I have a longer list of items. When the user scrolls down the page and clicks on the item, they go to a detailed view for that item. If they hit the back button on the browser takes them back to the list, but it goes back to the top of the list.

Is there a way to have back button will take the user back to the list and the same scroll location?

Member Avatar

Are you using anchors?

<a href="#me">Go to 'me'</a>

In your list...

<a id="me">Me!</a>

You'll notice that the url will change.

So when you navigate away and then press the back button on the browser, you should go back to the 'Me!' text.