0

how do I go back to my previous scroll position when clicking the back button using the smoothState plugin?

P.S. I'm fairly new when it comes to JS so I appreciate any help I can get. Thanks.

Jovil Hiew
  • 15
  • 1
  • 8
  • I believe this has what you're looking for: http://stackoverflow.com/questions/29203312/how-can-i-retain-the-scroll-position-of-a-scrollable-area-when-pressing-back-but – Jamin Apr 11 '17 at 06:34
  • 1
    Possible duplicate of [How can I retain the scroll position of a scrollable area when pressing back button?](http://stackoverflow.com/questions/29203312/how-can-i-retain-the-scroll-position-of-a-scrollable-area-when-pressing-back-but) – Paolo Forgia Apr 11 '17 at 06:52
  • This doesn't actually work because the page doesn't refresh when clicking the back button but performs an ajax call instead. – Jovil Hiew Apr 11 '17 at 06:56

0 Answers0