You could always use the onbeforeunload event to check when the window is being closed, and set a cookie with the current position. Than every time the page is loaded just check if that cookie is set. If it is - use the value to redirect the user to the saved position.
Update
You should understand the concepts in order to make it work. You can read about cookies and how to interact with them in javascript here. The link contains a live example.
The onunload and onbeforeunload are javascript events which you can use to detect when your page is being closed. You should google what they are and how to use them.
You could check this stack-overflow question for an answer how to jump to a specific offset and this one to see how to retrive it.
I gave you all the puzzle pieces, it's up to you to put them together.