reset scroll position with javascript code example Example: javascript reset scroll position window.scrollTo(0,0);