Go to Top of the Page Using Javascript

Use the code below:

window.scrollTo(0,0);

Please feel free to use the comments form below if you have any questions or need more explanation on anything. I recommend thoroughy testing on a production-like test system first before moving to production. Use the icons below to share this tutorial with your friends.

tags cloud

javascript

popular searches