if you want to add a link or a button which if you click on it the page going to top you can have it and whenever the user click on the link the page goes again to the first of the page, the below javascript code will provide the same thing.
Simply Cut and Paste code snippet
Be sure to properly place script in body of html where link is to appear.