window.onload javascript syntax code example
Example 1: how to call a function as soon as a page loads javascript
<body onload="yourFunction()"> </body>
Example 2: javascript onload
<body onload="myFunction()">
<body onload="yourFunction()"> </body>
<body onload="myFunction()">