Topic awaiting preservation: page refresh script |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: West Texas |
posted 10-19-2002 06:39
This might be a bit of an odd request, but is there a fairly easy way to get a page to reload after a specified number of milliseconds? I've found one or two scripts with a lot of extra stuff I could cut out, however, they only start counting after the page loads, i.e. : window.onload=call_refresh_function |
Maniac (V) Inmate From: Brisbane, Australia |
posted 10-19-2002 07:31
Put this in the head: |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 10-19-2002 08:21
If you're trying to foward the user, rather than refresh, then try |
Maniac (V) Inmate From: Brisbane, Australia |
posted 10-19-2002 08:23
Hey that's cool. I hate it when my back button goes to an instant redirect page. |
Bipolar (III) Inmate From: Amsterdam |
posted 10-19-2002 17:03
Maybe I'm being just a fool, but why not use the old meta-tag in order to do this? |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 10-19-2002 18:17
I've updated the FAQ on this to reflect the advice given here: |
Paranoid (IV) Inmate From: West Texas |
posted 10-19-2002 20:32
Thanks everyone. I think Drac has what I'm looking for with: setTimeout("this.location = 'url' ",1000) quote: I knew someone would ask |
Maniac (V) Inmate From: Brisbane, Australia |
posted 10-20-2002 03:11
Ok, in that case you'll want to put the script code just after the back end code that talks to the DB or it might fire x time after it reads post the head with could be bad. |
Paranoid (IV) Inmate From: West Texas |
posted 10-20-2002 19:05
Like I said, "This might be a bit of an odd request." quote: Well, that would be a lot easier I suppose, however I'm not working with my pages, otherwise I would. |