Forum Discussion

Re: iframe refresh

Option 1
function timedRefresh(timeoutPeriod) {function timedRefresh(timeoutPeriod) { setTimeout("location.reload(true);",timeoutPeriod);}
window.onload = timedRefresh(5000); // this is set for 5 sec

Option 2 (also good for timed redirect)
<meta http-equiv="refresh" content="5;url=http://example.com/" />
content = (this is in seconds, put to 0 for imedate redirect) ; url= (put either redirect page, or same page for refresh, or whatever)

------------------------------
Meredith Moore
------------------------------
No RepliesBe the first to reply