Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!-- Quirks mode on purpose -->
<html>
<body style="display:none;"></body>
<script>
var html = document.documentElement;
var div = document.createElement("div");
div.style.height = "4000px";
html.appendChild(div);
html.appendChild(document.createTextNode("text"));
div = document.createElement("div");
div.style.height = "4000px";
html.appendChild(div);
document.body.scrollTop = 4000;
</script>
</html>