javascript page load event

86

load Event -

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

window.onload -

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

Comments

Submit
0 Comments