For browsers that support history.scrollRestoration, the auto scroll behavior can be turned off:
if ('scrollRestoration' in history) {
history.scrollRestoration = 'manual';
}
source: https://developers.google.com/web/updates/2015/09/history-api-scroll-restoration
More Related Contents:
- Choppy/Laggy scroll event on Chrome and IE
- How can I get the current Crome URL?
- Chrome extension that enables chatting with users on same page [closed]
- Is Chrome’s JavaScript console lazy about evaluating objects?
- Find out whether Chrome console is open
- Prevent scrolling of parent element when inner element scroll position reaches top/bottom?
- How to import ES6 modules in content script for Chrome Extension
- new Date() is working in Chrome but not Firefox
- Unchecked runtime.lastError while running tabs.executeScript?
- How to detect when a tab is focused or not in Chrome with Javascript?
- How do I auto-reload a Chrome extension I’m developing?
- Editing in the Chrome debugger
- Upload File as a Form Data through chrome extension
- Getting Chrome to prompt to save password when using AJAX to login
- Refused to execute inline event handler because it violates CSP. (SANDBOX)
- How can I make window.showmodaldialog work in chrome 37?
- Chrome extension: Inject JS before page load
- What’s the time complexity of array.splice() in Google Chrome?
- How to properly handle chrome extension updates from content scripts
- Restoring console.log()
- chrome.storage.local.get and set [duplicate]
- Chrome re-ordering object keys if numerics, is that normal/expected
- Why is document.execCommand(“paste”) not working in Google Chrome?
- 400x Sorting Speedup by Switching a.localeCompare(b) to (ab?1:0))
- window.focus() not working in Google Chrome
- How do I prevent Google Chrome from blocking my popup?
- How can I inspect disappearing element in a browser?
- tabs.executeScript – passing parameters and using libraries?
- Enable smooth scrolling for my website in all browsers
- How to to initialize keyboard event with given char/keycode in a Chrome extension?