Answers for "js on page \load"

2

on load javascript

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

js on page loaded

window.onload = function() {
  yourFunction(param1, param2);
};
Posted by: Guest on April-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language