Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<style type="text/css">
html, body {
margin: 0;
}
#scrollbox {
overflow: auto;
height: 500px;
width: 500px;
}
#scrolled {
height: 1201px;
}
</style>
<div id="wrapper">
<div id="scrollbox">
<div id="scrolled">
</div>
</div>
</div>
<script>
var scrollbox = document.getElementById("scrollbox");
scrollbox.scrollTop = 80;
</script>