JS: window.setInterval still running in the background?
<p>My code is like:</p>

<pre><code>window.setInterval(updateSeconds, 1000);
function updateSeconds() {
    var remainingSeconds = $('#seconds').html() - 1;
    if(remainingSeconds &lt; 0) {
        remainingSeconds = 0;
    }
    $('#seconds').html(remainingSeconds);
    if(remainingSeconds == 0) {
        //stop calling updateSeconds
    }
}
</code></pre>

<p>There is no issue, except that setInterval will still keep calling updateSeconds(), is there a way to stop it?</p>
