ScrollIntoView is a native Javascript function that does not behave perfectly all the time. It works much like a bookmark link on a page in that ScrollIntoView basically scrolls you down to a specific location on a page. This page contains a pure Javascript code solution that is really cool in that it makes the content come to the site visitor when the triggering link or button is clicked.

This method helps make it so the website visitor never feels lost because instead of the visitor being moved around on the web page, the web page is moved around for the visitor, without the visitor scrolling anywhere. The following page contains the exact html and Javascript code required along with a sample download so you study it. Surprisingly, the code is much shorter and simpler than you might expect ...