Articles about Javascript

How to change the location hash without jumping in scroll position

Snippet published on January 18, 2017 by @markvaneijk in Javascript
One of the little annoyances when creating tabs with Javascript and changing the location hash depending on the activated tab, is that the page can jump in scroll position when changing the tab. Because the element ID is on the same page and changing the location hash makes the browser look for it and jump to it in scroll position.
Read more about how to change the location hash without jumping in scroll position