Answers for "js timer reload page"

2

refresh page every second javascript

<script>
    window.setInterval('refresh()', 10000); 	
    // Call a function every 10000 milliseconds 
    // (OR 10 seconds).

    // Refresh or reload page.
    function refresh() {
        window .location.reload();
    }
</script>
Posted by: Guest on March-27-2020
0

js timer reload page

//BY JS
setTimeout(function() {
  location.reload();
}, 30000);
//NOTE: YOU COULD DO IT BY HTML5 LIKE THIS:
<meta http-equiv="refresh" content="30"/>
Posted by: Guest on June-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language