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
Post a Comment