js event onload 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');
});