You cannot set onload function to document.body.onload : body : HTML Tags JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » HTML Tags » body »

 

You cannot set onload function to document.body.onload

















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

    </body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo HTML Tags
» body