Reload Current page using javascript

by satheeshkumar 2014-06-04 14:36:19

Reload Current page using javascript after specified interval of time,
<script>
    function refreshPage() {
        var Url = window.location;
        window.location.href= Url;
    }
    setInterval("refreshPage()",2000); 
</script>
In the above function it reloads the current page after every two seconds.
1140
like
0
dislike
0
mail
flag

You must LOGIN to add comments