javascript page load event

76

load Event -

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

window.onload -

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

Comments

Submit
0 Comments