hidden-iframe-scrollbar-crash2.html 688 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<html>
<body><p>
This is some text to force a scrollbar to appear.
This is some text to force a scrollbar to appear.
This is some text to force a scrollbar to appear.
</p>
<img id="i" onbeforeload="beforeload()" onload="pass()">
</body>
<script>
function beforeload()
{
    setTimeout(function() {
        var win = window.parent;
        win.document.getElementById("iframe").style.display = "none";
    });
    return true;
}

function pass()
{
    var win = window.parent;
    win.document.getElementById("iframe").style.display = "";
    win.document.body.appendChild(document.createTextNode("PASSED"));
24 25
    if (window.testRunner)
        testRunner.notifyDone();
26 27 28
}
</script>
</html>