Javascript counter

Discussion in 'JavaScript' started by bob_rock, Jun 8, 2008.

  1. #1
    Hi ,
    I would be very grateful if someone could tell me how to run counter in the background . I mean for example count down 5 minutes , and that counter will not reload and start again from the beginning if page was refreshed. I think I will figure it out how to make a counter :D , but dont know how to make it to run in the backgorund(so it wont refresh)

    Thank you in advance
     
    bob_rock, Jun 8, 2008 IP
  2. sharry

    sharry Peon

    Messages:
    319
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try setting a flag using cookies
    for example if the counter is elapsed set the flag=1
    then in the counter function check if the flag is 1 if true dont start counter if false start the counter
     
    sharry, Jun 8, 2008 IP