Use custom function as body onload event handler : body : HTML Tags JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » HTML Tags » body »

 

Use custom function as body onload event handler

















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







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo HTML Tags
» body