blob: 0f03a8a766658088db5d886f7d3179cdbf672ed1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<!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>
|