I have a button on a page and I want that when it is clicked, the page scrolls to the 0 position.
HTML
Back to top
you can use window function for scrollTop jquery
scrollTop
$("#button").click( function() { $(window).scrollTop(0); });
When you click button, this page scroll to top of the position.