scroll.html   [plain text]


<!DOCTYPE html>
<html>
<meta name="viewport" content="width=200, height=500, user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1"/>
<script type="text/javascript">
function pageScroll() {
    window.scrollBy(0,50); // horizontal and vertical scroll increments
}
</script> 
<style>
    body {
        background-color: blue;
        margin: 50 50 50 50;
    }
    div {
        font-color: white;
        background-color: green;
        width: 300px;
        height: 1000px;
    } 
</style>

<head>
<title>Scroll test </title>
</head>
<body onload="pageScroll()">
<div>
</div>
</body>
</html>