how to get 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');
});