This is a jQuery Plugin that generates a to-top-button. The plugin has a lot of options to customize it for your website.