Reputation: 983
I want to remember my cursor position when refresh the page.but whenever i refresh the page the cursor can top of the page.how can i solve it.any help appreciated.thanks
Upvotes: 1
Views: 545
Reputation: 11188
You could use ajax. Get the cursor-coordinates (although I think you're after the scrollbar position) and post them to your page (by $_GET). Then post them back and use javascript to position the page to where-ever you want it.
Get scrollbar info, Set scrollbar
Upvotes: 2