Results 1 to 2 of 2
Thread: Countdown timer with cookie
May 25, 2010, 06:50 #1
- Join Date
- May 2010
- 0 Post(s)
- 0 Thread(s)
Countdown timer with cookie
I have a js countdown timer which counts down from 60 seconds to zero and when it hits zero it redirects the page.
Only problem is that when the user refreshes the page the timer obviously reverts to 60 seconds.
Does anyone have any code which would turn this into a cookie so that the location of the timer is stored each time the page is refreshed and then the timer continues from where it left off?
My timer is using setTimeout.
I've seen a couple of examples of this on various forums but none actually seem to work - my cookies are switched on.
Also, I cannot use form, input or anything else like this due to the third party software we're using (long story!).
Any help would be lovely.