Results 1 to 2 of 2
Aug 23, 2012, 05:43 #1
- Join Date
- Sep 2008
- 0 Post(s)
- 0 Thread(s)
Get scroll value and then return to it on click
I want to...
(1) Get the current browser scroll position/value when clicking this:
(2) Return to the last stored scroll position when click this:
<a href="#top">RETURN TO CONTENT</a>
...with #top being a non-JS fallback
I can do everything to complete this, it's just the getting and setting of the browser scroll value I could do with some help on.
...and most importantly to do this without jQuery (or any other library).
I also want it to be completely cross-browser compatible.