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
1 answer
$(window).onload(function() {
$('html, body').animate({scrollTop : 0});
});
Find more questions by tags HTMLJavaScript
$('html, body').animate({scrollTop : 0});
});
this version works - Orlo.Emmeri commented on July 12th 19 at 16:49