Call js-function using JQuery timer
<p>Is there anyway to implement a timer for JQuery, eg. every 10 seconds it needs to call a js function. </p>

<p>I tried the following</p>

<pre><code>window.setTimeout(function() {
 alert('test');
}, 10000);
</code></pre>

<p>but this only executes once and then never again. </p>
