event listener launch function onload code example
Example 1: on load javascript
window.onload = (event) => {
console.log('page is fully loaded');
};
Example 2: window onload
function load(argument) {
// body...
}
window.onload = load;
window.onload = (event) => {
console.log('page is fully loaded');
};
function load(argument) {
// body...
}
window.onload = load;