javascript
javascript start function on load
Javascript Start Function on Load If you want to run a Javascript function as soon as the page loads, you can use the window.onload event. This event fires when all the elements on the page have finished loading. Method 1: Inline Script The simplest way to use window.onload