Skip to content

Instantly share code, notes, and snippets.

@borisBelloc
Created November 13, 2018 19:51
Show Gist options
  • Select an option

  • Save borisBelloc/b7e1add776aca9fb631612b7895637f5 to your computer and use it in GitHub Desktop.

Select an option

Save borisBelloc/b7e1add776aca9fb631612b7895637f5 to your computer and use it in GitHub Desktop.

Revisions

  1. borisBelloc revised this gist Nov 13, 2018. 1 changed file with 7 additions and 2 deletions.
    9 changes: 7 additions & 2 deletions auto-reload-script.html
    Original file line number Diff line number Diff line change
    @@ -5,8 +5,13 @@

    <body>



    <!--
    Add this script into your html page;
    inside the <body> </body>
    It will refresh/reload page every 3 seconds.
    Time is in milliseconds (1000 = 1 sec)
    -->

    <script>
    window.onload = function() {
  2. borisBelloc created this gist Nov 13, 2018.
    20 changes: 20 additions & 0 deletions auto-reload-script.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    <!DOCTYPE html>
    <head>
    <title>POC : Auto-reload script</title>
    </head>

    <body>




    <script>
    window.onload = function() {
    setInterval(function() { location.reload(); } , 3000);
    };
    </script>



    </body>
    </html>