Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE HTML>
<html>
<div style="margin-top: 100px">
<div id="scroller" style="overflow:scroll; height: 400px; width: 400px; background-color: yellow">
<div style="height: 800px">
<div style="position: relative; top: 120px; height: 20px; background-color: green"></div>
</div>
</div>
</div>
<script>
document.getElementById('scroller').scrollTop = 120;
</script>