Calling a function every 60 seconds
If you don’t care if the code within the timer may take longer than your interval, use setInterval(): setInterval(function, delay) That fires the function passed in as first parameter over and over. A better approach is, to use setTimeout along with a self-executing anonymous function: (function(){ // do some stuff setTimeout(arguments.callee, 60000); })(); that guarantees, … Read more