chromium/third_party/blink/web_tests/fast/events/onload-re-entry.html

<script>
var x = 0;
function write_stuff()
{
    x++;
    document.open();
    document.write("<p>" + x + "</p>");
}
</script>
<body onload="write_stuff()">
</body>