'doScroll()' Example : Scroll « Document « JavaScript DHTML
- JavaScript DHTML
- Document
- Scroll
'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