Javascript: Auto-Scroll to Top of Page
Javascript allows you to scroll a page to a specific X, Y coordinate. This is simply done by using the "window" object's "scrollTo()" function. To scroll the page to the top use the following code:
window.scrollTo(0,0);
Comments