Answers for "execute js function on load"

1

javascript start function on load

window.onload = function() {
// Your code
};
Posted by: Guest on July-30-2021
0

javascript execute code on page load

<html>
 
  <body onload="loaded();"></body>
  <script>
    function loaded() {
      alert('Page is loaded');
    }
 
  </script>
 
</html>
Posted by: Guest on November-18-2020

Code answers related to "execute js function on load"

Code answers related to "Javascript"

Browse Popular Code Answers by Language