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