Lord_Jesus_, а у меня работает:
<button type="button" id="button">Reload</button>
<style>button{
margin:1500px 0;
}</style>
<script>
window.scrollTo(0,+storage('scrollTop')||0);
button.onclick=function(){
storage('scrollTop',window.pageYOffset);
location.reload();
};
function storage(key,value){
try {
if (!window.localStorage)
throw new Error('LocalStorage disabled');
return localStorage[(value!==undefined?'s':'g')+'etItem'](key, value);
} catch (e) {
!!window.console && !!console.error && console.error(e);
}
return null;
}
</script>