Click to See Complete Forum and Search --> : another meta refresh?


adamthenewbie
07-14-2003, 11:53 AM
I have a chat room on my website that uses meta-refresh. Is there another way of refreshing the page? Maybe a function that calls its self ever 5 seconds or something?? Because some browsers dont have meta -refresh would be great if some one could help me out

Thanks
Adam

requestcode
07-14-2003, 12:03 PM
You could use setTimeout and location.reload(). An example would be:
function MyRefresh()
{
location.reload()
setTimeout("MyRefresh()",5000)
}

<body onLoad="setTimeout("MyRefresh()",5000)>

That is 5000 miliseconds or 5 seconds.