Tutorial Perform Function At Timed Intervals
Perform a function every one second: function myFunction() { // do something } var int = setInterval(myFunction, 1000); Cancel it: clearI...
https://iskablogs.blogspot.com/2014/03/tutorial-perform-function-at-timed.html
Perform a function every one second:
function myFunction() {
// do something
}
var int = setInterval(myFunction, 1000);
Cancel it:
clearInterval(int);
Pass variables when calling custom function:
setInterval(function(){ doMove(panelWidth, tooFar); }, delayLength);
function myFunction() {
// do something
}
var int = setInterval(myFunction, 1000);
Cancel it:
clearInterval(int);
Pass variables when calling custom function:
setInterval(function(){ doMove(panelWidth, tooFar); }, delayLength);