Answers for "how to run a function when a page loads"

0

execute javascript function when page loads

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

Code answers related to "how to run a function when a page loads"

Code answers related to "Javascript"

Browse Popular Code Answers by Language