![]() Topic awaiting preservation: page refresh script (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: West Texas |
![]() 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 |
![]() Put this in the head: |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() If you're trying to foward the user, rather than refresh, then try |
Maniac (V) Inmate From: Brisbane, Australia |
![]() Hey that's cool. I hate it when my back button goes to an instant redirect page. |
Bipolar (III) Inmate From: Amsterdam |
![]() 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 |
![]() I've updated the FAQ on this to reflect the advice given here: |
Paranoid (IV) Inmate From: West Texas |
![]() 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 |
![]() 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 |
![]() 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. |