How to stop function reload(window.reload) on jquery or javascript?
<p>Source</p>

<pre><code>$(function reload(){
  $.ajax({
    .
    .
    .
    window.setTimeout(reload, 3000);
  });
});
</code></pre>

<p>This function reload ajax page on every 3 sec.</p>

<p>I want to make stop button(#stop).</p>

<pre><code>$('#stop').click(function){
   //STOP FUNCTION
});
</code></pre>

<p>Please let me know how to make it?</p>
