event onload page javascript code example
Example: on load javascript
window.addEventListener('load', (event) => {
console.log('page is fully loaded');
});
window.addEventListener('load', (event) => {
console.log('page is fully loaded');
});