1window.onload = function() {
2 // Some code
3};
4
1window.addEventListener('load', (event) => {
2 console.log('page is fully loaded');
3});
1window.addEventListener('load', (event) => {
2 console.log('page is fully loaded');
3});
4
5window.onload = (event) => {
6 console.log('page is fully loaded');
7};
1//use
2window.onload=()=>{};