Hello guys,
I'm trying to do JS counter and I have found the thread here: http://bytes.com/topic/javascript/answers/153258-increase-displayed-variable-after-clicking-button
The problem is, that when I refresh page the counter is reset.
What I want ideally is this:
Counter starts at 0, when the button is pushed the first time, the counter goes to 1. When the button is pushed the second time, the counter goes to 2, and similary to 3. When the button is pushed the 4th time the counter should go back to 0.
Thank you very much!
I'm trying to do JS counter and I have found the thread here: http://bytes.com/topic/javascript/answers/153258-increase-displayed-variable-after-clicking-button
The problem is, that when I refresh page the counter is reset.
What I want ideally is this:
Counter starts at 0, when the button is pushed the first time, the counter goes to 1. When the button is pushed the second time, the counter goes to 2, and similary to 3. When the button is pushed the 4th time the counter should go back to 0.
Thank you very much!
Comment