Window onload event : onload « Window « JavaScript Tutorial






<html>
    <head>
        <title>Onload Example</title>
        <script type="text/javascript">
            window.onload = function () {
                alert("Loaded");
            };
        </script>
        <body>
        </body>
</html>








19.9.onload
19.9.1.Window onload event
19.9.2.Use alert dialog in only event