Answers for "to call a function when the 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 "to call a function when the page loads"

Code answers related to "Javascript"

Browse Popular Code Answers by Language