PDA

View Full Version : page refresher script


newbieiam
08-21-2002, 04:05 AM
Hey all's,

I would like to have a refresher on my page, so every 30 seconds the page is automaticly refreshed. I just added a tagboard, so that's why i need the script. thanks in advance! cheers!

Tonz
08-21-2002, 04:15 AM
In the head...


<script>
var home = "SAMEURL.html";
var time = "30";
setTimeout("window.location=home",1000*time);
</script>

You would need to play around with the var time part.


Hope it helps

Tonz:cool:

newbieiam
08-21-2002, 04:23 AM
that totally works, but when it refreshes the page is empty, i tried changing the

("window.location=home"


home to what my page is called, mainpage, but then an error occurs?? any suggestions?

newbieiam
08-21-2002, 04:31 AM
i changed var home =" mainpage.htm " and now it works, thanks soo much, you can check it out if ya like...

http://www.haydenhaven.net


:)

Tonz
08-21-2002, 05:06 AM
Sorry,

Should have mentioned.

var home= sameurl .html

was the varible to be changed.




Tonz:cool:

Dotcomsnz
08-29-2002, 12:34 PM
<META HTTP-EQUIV="Refresh" CONTENT=30>

for html types :D