Answers for "javascript function on page load"

1

js on page loaded

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

javascript load page

window.location = "https://example.com/";
Posted by: Guest on May-20-2020

Code answers related to "javascript function on page load"

Code answers related to "Javascript"

Browse Popular Code Answers by Language