How to make a back-to-top button using CSS and HTML only? -


what i'm trying kind of back top button scroll down , point on page! instance have long text , want bring user next paragraph having him click on link... i've done in past can't remember how did life of me...

what want put "anchor" @ top of page, using <a> tag (it's not useful links!). then, when have link goes #nameofanchor, scrolls anchor name. you'd this:

<a name="top"></a> <!--content here--> <a href="#top">back top</a> 

here working jsfiddle: http://jsfiddle.net/qf0m9arp/1/


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -