<!DOCTYPE HTML> <html> <body> <p>Hello <div style="height:10000px; width:100px; background:yellow"></div> <script> window.scrollTo(0,200); document.documentElement.setAttribute("style", "overflow-y:hidden"); </script> </body> </html>