Snippet of code to run code every second. Doesn’t trigger the next iteration until the first has finished.
(function() { // Do something every second here setTimeout(arguments.callee, 1000); // 1000 is the time in milliseconds })();
Snippet of code to run code every second. Doesn’t trigger the next iteration until the first has finished.
(function() { // Do something every second here setTimeout(arguments.callee, 1000); // 1000 is the time in milliseconds })();