Answers for "auto refresh page in javascript"

1

auto reload page javascript

//refresh page every 5 seconds//
<script>
    function refreshPage()
    {
        window.location = window.location.href;
    }
    setInterval('refreshPage()', 5000);
</script>
Posted by: Guest on September-17-2021
2

js page auto reload

<script type="text/javascript">
    function autoRefreshPage()
    {
        window.location = window.location.href;
    }
    setInterval('autoRefreshPage()', 10000);
</script>
Posted by: Guest on April-20-2021

Code answers related to "auto refresh page in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language