blob: c74e8726bd394519382371bfbf6b6837947af4bc [file] [log] [blame]
<!DOCTYPE html>
<!--
| The onload event should fire on the window object when the document (and all
| resource) have finished loading. This test specifically sets the onload
| event handler through the window onload attribute, as opposed to
| addEventListener().
| https://www.w3.org/TR/html5/webappapis.html#event-handlers-on-elements,-document-objects,-and-window-objects
-->
<html>
<head>
<style>
body {
font-size: 60px;
}
</style>
</head>
<body>
<script>
window.onload = function () {
document.getElementById('text-box').innerHTML = "onLoad event fired.";
};
</script>
<div id="text-box">
</div>
</body>
</html>