javascript - Disable brower's auto scroll after a page refresh? -


is there way disable behavior modern browsers (chrome , safari) remember scroll position on page refresh?

for browsers support history.scrollrestoration, auto scroll behavior can turned off:

if ('scrollrestoration' in history) {   history.scrollrestoration = 'manual'; } 

source: https://developers.google.com/web/updates/2015/09/history-api-scroll-restoration


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -