If you have an anchor link at the top of the page, you can also do this with anchors.
<a name="top"></a>
<a href='#top">top</a>
It will work in a browser with Javascript disabled, but changes the URL. :( It also allows you to jump anywhere where the name anchor is installed.
source
share