how to generate a countdown timer for 20mins even if the user refresh the browser. This is for a online test so that even the user refresh the broswer, the test remaining time is still there
how to generate a countdown timer for 20mins even if the user refresh the browser. This is for a online test so that even the user refresh the broswer, the test remaining time is still there
I'd probably say set a cookie when the user starts the test, and check against that.
how?
You'd have to user a server side language such as PHP, CGI, or ASP. Last I knew (and it has been awhile), JavaScript has no cookie capabilities, even though they are both client side.Quote:
Originally posted by hongge
how?
javascript does have cookie abilities ;)
http://javascript.internet.com/cookies/
I suppose I'm going to have to re-educate myself, then. :)Quote:
Originally posted by punkpie_uk
javascript does have cookie abilities ;)
http://javascript.internet.com/cookies/