Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 542 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 542 Bytes

lastScroll.js

A JS plugin which remembers the exact location user was reading in your website after closing/refreshing the page

Save the last user scroll in localStorgae and when the user returns to the page or refreshes the scroll does not return to the first and the site starts from the same part where the user has scrolled

how to use?

Just link the script to the relevant html page :)

<script src="lastScroll.js"></script>

Source code is also available in codpen