To scroll to the top of the page in javascript you can use the following snippet. This will scroll instant to the top left of the page, for a smoot scroll look at the jQuery Version.
Sample Javascript
window.scrollTo(0, 0);
To scroll to the top of the page in javascript you can use the following snippet. This will scroll instant to the top left of the page, for a smoot scroll look at the jQuery Version.
window.scrollTo(0, 0);
You must be logged in to post a comment.
RT @CodeSnippetsNET: How to scroll to the top of the page in #javascript http://t.co/r55LjMubxf #js #php
RT @CodeSnippetsNET: How to scroll to the top of the page in #javascript http://t.co/r55LjMubxf #js #php