Reset the scroll position on the page [ 824 views ]
Goal: reset the scroll position
If the page content is dinamically loaded sometimes we need to reset the scroll position of the page. Like this:
window.scrollTo(0, 0); ... or just without the window object ... scrollTo(0, 0);