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