'doScroll()' Example : Scroll « Document « JavaScript DHTML






'doScroll()' Example

    
<html>
<body>
<body id="myBody">
<button onclick="document.all.myBody.doScroll('scrollbarPageDown');">Page Down</button>
<button onclick="document.all.myBody.doScroll('scrollbarPageUp');">Page Up</button>
<div style="height:5000; width:500; background-color:blue;">Very large div element</div></body>
</body>
</html>

    
      
      








Related examples in the same category

1.Body scroll Properties
2.'scrollIntoView()' Example