Try the following:
$(document).ready(function() { $("html,body").animate({scrollTop: 0}, 100);
Or that:
window.onload = function() { setTimeout (function () { scrollTo(0,0); }, 100);
Or that:
$(window).on('beforeunload', function() { $(window).scrollTop(0); });
Browsers typically return to their last scroll position on reboot, which makes sense in many cases. It seems that this automatic transition starts immediately after the onload event (but we donβt know the exact moment when this happens), so it makes sense to either use some delay or scroll the browser up until the page reloads;)
source share