How to scroll an HTML page to a given anchor September 30, 2022 by Tarik function scrollTo(hash) { location.hash = "#" + hash; } No jQuery required at all!