Demo
Create a HTML page with the below code & the page will refresh every 5 seconds.
Code
<script type="text/JavaScript">
timedRefresh(5000);
function timedRefresh(timeoutPeriod) {
setTimeout("location.reload(true);",timeoutPeriod);
}
</script>
<p>This page will refresh every 5 seconds. We are passing in the value '5000', which equals 5 seconds.</p>
Create a HTML page with the below code & the page will refresh every 5 seconds.
Code
<script type="text/JavaScript">
timedRefresh(5000);
function timedRefresh(timeoutPeriod) {
setTimeout("location.reload(true);",timeoutPeriod);
}
</script>
<p>This page will refresh every 5 seconds. We are passing in the value '5000', which equals 5 seconds.</p>
Comments
Post a Comment