Scroll / Jump to id without jQuery June 7, 2023 by Tarik Maybe You should try scrollIntoView. document.getElementById('id').scrollIntoView(); This will scroll to your Element.