Answers for "js run on load"

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
0

run on load js

function codeAddress() {
            alert('ok');
        }
window.onload = codeAddress;
Posted by: Guest on June-03-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language