<script> window.onload = function() { var el = document.getElementById('target'); el.scrollIntoView(true); } </script> <div id="target">My Menu</div>