<html>
<body>
<script>
// This checks that the event listener on the frame is not set on its document.
// If it were, this would appear.
function foo() { alert('document.onload was called - BUG') };
document.onload=foo;
function bod() { alert('document.body.onload was called - BUG') };
document.body.onload=bod;
</script>
<!-- And this checks that the code in frame.onload.html replaces this frame's contents -->
BUG
</body>
</html>