javascript page load event

79

load Event -

window.addEventListener('load', (event) => {
  console.log('page is fully loaded');
});

window.onload -

window.onload = function() {
  // Some code
};

Comments

Submit
0 Comments