If you noticed I have a ‘Back to top’ link appearing at the bottom right everytime you scroll down the page. Wonder how it was made? I’ll tell you. It’s quite simple. What you need is a div containing the text, apply some css and add an event using jQuery.
First, create the div:
<div id="toTop">^ Back to Top</div> |
Then add style to it, add this in your css file or inside <style> tag: