How to make so that when you refresh the page, it shifted at the beginning?

Hello guys, please tell me how to do the following thing:
If to scroll the page to a certain point then its to upgrade to modern browsers, updating, getting in the same place from which you are upgrading, and I need to do so that when you refresh the page it loaded from the beginning, that is from the top. How to write such a script?

fraternally explain that where to stick to work and please the full script
July 12th 19 at 16:41
1 answer
July 12th 19 at 16:43
Solution
$(window).onload(function() {
$('html, body').animate({scrollTop : 0});
});
didn't work, stuck to the script in head and in body - Orlo.Emmeri commented on July 12th 19 at 16:46
$(window).on( 'load', function() {
$('html, body').animate({scrollTop : 0});
});
this version works - Orlo.Emmeri commented on July 12th 19 at 16:49
: wrote by hand, made a mistake, it happens. - Missouri.McClure32 commented on July 12th 19 at 16:52

Find more questions by tags HTMLJavaScript