blob: 55d39998ded79f3827cefca175937a35d79dd8f6 [file] [log] [blame]
<html>
<body onload="onload()">
This tests that an onload handler named 'onload' is called properly.
You should see "PASS" below.
<div id='result'>FAIL: this text should be replaced on success.<div>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
function onload() {
var result = document.getElementById('result');
result.innerHTML='PASS: onload function gets called.';
}
</script>
</body>
</html>