JQuery timer, how do I do this

Posted by Roland on Stack Overflow See other posts from Stack Overflow or by Roland
Published on 2010-02-19T09:04:22Z Indexed on 2010/03/23 21:13 UTC
Read the original article Hit count: 407

Filed under:
|

Is there anyway to implement a timer for JQuery, eg. every 10 seconds it needs to call a js function.

I tried the following

window.setTimeout(function() {
 alert('test');
}, 1000);

but this only executes ones and then never again.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery