setInterval is not working
<p>Suppose I have a function:</p>

<pre><code>function chk(){
   alert("Welcome");
}

window.onload = chk();
setInterval("chk();", 5000);
</code></pre>

<p>but it is not working but when I refresh the page it works for me. How can I fix that?</p>
