Answers for "how to refresh a web page automatically in javascript"

1

how to refresh a web page automatically in javascript

<html>
   <head>
      
      <script type = "text/JavaScript">
         <!--
            function AutoRefresh( t ) {
               setTimeout("location.reload(true);", t);
            }
         //-->
      </script>
      
   </head>
   
   <body onload = "JavaScript:AutoRefresh(5000);">
      <p>This page will refresh every 5 seconds.</p>
   </body>
   
</html>
Posted by: Guest on February-03-2021

Code answers related to "how to refresh a web page automatically in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language