Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

o que e window.onload js

<!doctype html>
<html>
  <head>
    <title>onload test</title>
    <script>
      function load() {
        console.log("Evento de carregamento detectado!");
      }
      window.onload = load;
    </script>
  </head>
  <body>
    <p>O evento de carregamento dispara quando o documento acabou de ser carregado!</p>
  </body>
</html>
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
8+6 =