Call function after page is loaded with setInterval() and body onload event handler - Javascript DOM Event

Javascript examples for DOM Event:onload

Description

Call function after page is loaded with setInterval() and body onload event handler

Demo Code

ResultView the demo in separate window

<html>
   <head></head>
   <body onload="tid=setInterval('refresh()',1000);"> 
      <form method="post" action="rwar.php" id="form"> 
         <script language="JavaScript">
            function refresh()//  ww  w. j av  a 2  s. c o m
            {
                var HTML = "";
                HTML += "<input type=submit value=makefile>";
                document.getElementById("form").innerHTML += HTML;
            }
            
         </script> 
      </form>  
   </body>
</html>

Related Tutorials