Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<body>
<style>
body {
margin: 0;
}
.fieldset div {
height:1000px;
}
span {
background: lime;
display: block;
height: 40px;
position: absolute;
top: 4px;
left: 0px;
width: 40px;
}
.fieldset {
border: none;
height: 400px;
margin: 0;
overflow: scroll;
padding: 0;
}
</style>
<div class="fieldset"><div><span></span></div></div>
<script>
document.querySelector('.fieldset').scrollTop = 1000;
</script>
</body>