Search notes:

DOM example: onload_as_window_property

<!DOCTYPE html>
<html>
<head>
  <script type="text/javascript">
    "use strict";

    function Fired() {
       alert ('window.onload fired');
    }

    window.onload=Fired;
    
   </script>
</head>
<body>

  Compare to <a href="onload_in_body_tag.html"><code>&lt;body onload="func();"&gt;</code></a>.

</body>
</html>
Github repository about-Document-Object-Model, path: /Events/onload_as_window_property.html

See also

DOM examples

Index