1.

How Can I Automatically Refresh A Web Page?

Answer»

You may use some JavaScript to have a WEB page automatically REFRESHED after a given NUMBER of seconds (milliseconds, to be correct).

Please read about the setTimeout METHOD of object window:

setTimeout(function, msec[, arg1[, ..., argN]])

For example, to refresh your page every 25 seconds, add the following to your page source:

<head> 
<script language=JavaScript> 
function reloadPage() { 
window.location=window.location 

function refreshPage() { 
setTimeout('reloadPage()',25000)

</script> 
</head> 
<body onLoad=refreshPage()>

You may use some JavaScript to have a Web page automatically refreshed after a given number of seconds (milliseconds, to be correct).

Please read about the setTimeout method of object window:

setTimeout(function, msec[, arg1[, ..., argN]])

For example, to refresh your page every 25 seconds, add the following to your page source:

<head> 
<script language=JavaScript> 
function reloadPage() { 
window.location=window.location 

function refreshPage() { 
setTimeout('reloadPage()',25000)

</script> 
</head> 
<body onLoad=refreshPage()>



Discussion

No Comment Found