How to make page scroll position to top at page refresh in HTML

$(document).ready(function(){
$(‘html’).animate({scrollTop:0}, 1);
$(‘body’).animate({scrollTop:0}, 1);
});