Tryit Editor v1.4

<html> <head> <script type="text/javascript"> function scrollWindow() { window.scrollTo(100,500); } </script> </head> <body> <input type="button" onclick="scrollWindow()" value="Scroll" /> <p>SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL</p> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <p>SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL</p> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <p>SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL</p> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <p>SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL</p> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <p>SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL</p> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <p>SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL</p> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <p>SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL</p> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <p>SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL SCROLL</p> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> </body> </html> | Your Result:
Edit the code above and click to see the result. | W3Schools.com - Try it yourself