How to refresh the html page every 2 minutes?
4 answers
use this
setTimeout(function(){
window.location.reload(1);
}, 120000);
EDIT Put this in your head
<script>
setTimeout(function(){
window.location.reload(1);
}, 120000);
</script>
EDIT
to attach this function only when the page is ready use
<script>
$('document').ready(function(){
setTimeout(function(){
window.location.reload(1);
}, 120000);
});
</script>
+3
source to share