<!doctype HTML> | |
<div style="width: 200px; height: 10000px; background: lightblue"> | |
<div style="position: relative; width: 100px; height: 100px; background: lightgray; top: 10px"></div> | |
</div> | |
<div style="position: absolute; width: 100px; height: 100px; background: lightgray; top: 110px; left: 100px"></div> | |
<script> | |
onload = () => { | |
document.scrollingElement.scrollTop = 10; | |
}; | |
</script> |