Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 <!DOCTYPE html>
2 <html>
3 <body onload="loaded()">
4 <div style="position: relative; top: 100px; overflow: scroll; width: 100px; height: 100px;">
5 <div style="height: 200px"></div></div>
6 <div style="position: absolute; top: 100px;" id="abs">abs</div>
7 <script>
8 function loaded() {
9 var insPoint = document.querySelector("div");
10 insPoint.scrollTop = 50;
11 var abs = document.getElementById("abs");
12 abs.style.top = insPoint.offsetTop + "px";
13 }
14 </script>
15 </body>
16 </html>