Scroll Windows to Top with JavaScript

JavaScript December 1st, 2008

The following JavaScript link in your page will cause the page to scroll to the top:

<a href=”javascript:scroll(0,0)”>Top</a>

The first number is the x position, the second is the y position. (Positions are in pixels.)  So, you can also change these numbers to scroll to a specific point on a page, too.

Copyright © 2008 iBiz Network Co., Ltd. Powered by wordpress, Theme by ericulous