Going From Bottom to Top using Javascript.

Posted by vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 441
We may have seen on several websites,there is link or button called 'back to top' link,which is used to take the users to top of the page.

Just give the Scroll position to (0,0) through Javascript.

For Example:-
<a href = "javascript:scroll(0,0)">
Back to top

So,once we click on back to top link,it will take us to top.

Comments or Responses

Login to post response