Home >> Javascript >> Onload event in Javascript

Onload event in Javascript

The browser has finished loading the page.
<script type = "text/javascript">
    function myFunction() {
        alert("Hello Bro");
    }
</script>
<body onload="myFunction()">
</body>

Post Your Comment

Next Questions

Copyright ©2022 coderraj.com. All Rights Reserved.