Back to Top using Javascript

Posted by Rajesh_Kumar under JavaScript category on | Points: 40 | Views : 1201
We may have seen 'back to top' link to take the user to top of the page.

There are a way to achieve it using Javascript code:

Give the Scroll position to (0,0) through Javascript.

For Example:-

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

Comments or Responses

Login to post response