Progress Bar Keeps Repeating
<p>How can the code below be modified such that when the progress bar is finished loading and it reaches the end, a seperate function (ie. test() )can be executed rather than just repeating and repeating like it is now.</p>

<pre><code>&lt;html&gt; 
    &lt;head&gt; 
        &lt;script type="text/javascript"&gt; 
        var prg_width = 200; 

        function progress() { 
            var node = document.getElementById('progress'); 
            var w    = node.style.width.match(/\d+/); 

            if (w == prg_width) { 
                w = 0; 
            } 

            node.style.width = parseInt(w) + 5 + 'px'; 
        } 

        &lt;/script&gt; 
    &lt;/head&gt; 

    &lt;body onload="var progress_run_id = setInterval(progress, 30);"&gt; 

        &lt;div style="border: 1px solid #808080; width:200px; height:5px;"&gt; 
            &lt;div id="progress" style="height:5px; width:0px; background-color:#DBDBDB;"/&gt; 
        &lt;/div&gt; 

    &lt;/body&gt; 
&lt;/html&gt; 
</code></pre>

<p>Much thanks and appreciation for all your help.</p>

<p>Cheers,</p>

<p>Jay</p>
