You can use scrollIntoView for an element in the window.onload event.
In your case, you will do:
window.onload = function() { var el = document.getElementById('target'); el.scrollIntoView(true); }
Good docs can be found here: MDN scrollIntoView
source share