+ 2
How
How to write a script in JS that works automatically with time; Example; clicks=0 // each second clicks += 1
5 Antworten
+ 1
To repeat a function after a certain amout of time you need to use the setInterval() function.
e.g.
setInterval( function(){
//your Code here
}, 1000);
+ 1
Please help
+ 1
what is "1000"
+ 1
1000 Millisecounds
+ 1
Oh ok, Thanks for help