View Full Version : JavaScript code to recognize scroll position and apply it to next page

01-19-2011, 03:08 AM

I'm wondering if anyone knows of some Javascript code that can recognize the position of a user's scroll bar when a link is clicked and then apply that scroll bar position to the next page.

Here's what I mean:

See how on this web page, http://www.rasmussenlandscapes.com/, if you scroll down to the bottom of the home page and then click on the services link (the link to the right of the home link), it'll pop you back up to the top of the screen when it takes you to that page?

What I want to know is if there is some Javascript (or anything else) that exists that can would cause your browser to open the services page with your scroll bar in the same position as when you clicked its link from the home page.

Is such a thing even possible? It would be really nice for web pages that look like they use frames but actually don't.