Save yourself all the trouble of building those "back to top" links all over your page and have a floating version instead. When your page is scrolled down the link appears and it's always at the bottom of the browser window and always links to the top of your page. When your page is at the top, the link disappears until the page is scrolled again. Your link can be text or graphics (or any HTML you like) **v1.8 Update** : Script now re-written to be smaller and standards compliant on HTML5 Pages.