kadi Posted August 7, 2013 Share Posted August 7, 2013 how can i add a coundown timer of say 30 sec . since i am using a coundown timer which is not working as i require. i got two pages and when i run the code, the timer already started and running in background on page 1 and in page 2 there is no countdown timer showing. i dont know how to achieve my task of showing countdown timers like a game timer for my 2 pages... Link to comment Share on other sites More sharing options...
justsomeguy Posted August 7, 2013 Share Posted August 7, 2013 If you're trying to show the same timer on 2 pages then one way would be to store the current value of the timer in a cookie each time you update the timer on one page, and when the other page loads check if the cookie is set to figure out where to start the timer. There are some other alternatives with HTML5 that don't use cookies. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now