Is there a way to make some JS code be executed every 60 seconds? I\'m thinking it might be possible with a while loop, but is there a neater solution? JQuery w
while
You could use setInterval for this.
setInterval
Disable the timer by setting clearInterval(interval).
clearInterval(interval)
See this Fiddle: http://jsfiddle.net/p6NJt/2/