blob: 8f23d52aec11e88d1b69335587380eeef8da7730 [file] [log] [blame]
<html>
<head>
<script>
var count = 0;
function handleBeforeLoad() {
if (++count == 2)
window.frameElement.parentNode.removeChild(window.frameElement);
}
function documentLoaded() {
var o = document.createElement('object');
o.addEventListener('beforeload', handleBeforeLoad, false);
document.body.appendChild(o);
}
</script>
</head>
<body onload='documentLoaded();'>
</body>
</html>