window loaded js code example
Example 1: javascript onload
<body onload="myFunction()">
Example 2: window onload
function load(argument) {
// body...
}
window.onload = load;
<body onload="myFunction()">
function load(argument) {
// body...
}
window.onload = load;