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.

Related Posts



2 Comments to “Scroll Windows to Top with JavaScript”

  1. Schwarz | January 13th, 2010 at 12:16 am

    good good good

Leave a Comment

You must be logged in to post a comment.

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