Answers for "load function js"

2

load js

window.addEventListener('load', (event) => {
  console.log('page is fully loaded');
});
Posted by: Guest on April-08-2020
1

load js

// Log a message when the page is fully loaded:

window.addEventListener('load', (event) => {
  console.log('page is fully loaded');
});
Posted by: Guest on April-08-2020
0

load js

// The same, but using the onload event handler property:

window.onload = (event) => {
  console.log('page is fully loaded');
};
Posted by: Guest on April-08-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language