How to setTimeout only 1 time looping?
<p>How to setTimeout only 1 time looping?</p>

<p>This code is looping forever and I just want it to loop only 1 time.</p>

<p>This is my code:</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script language="JavaScript" type="text/javascript"&gt;
function doStuff() {
    document.myform.submit();
}
var myTimer = setTimeout(doStuff, 1000);
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form name="myform" action="" method="post"&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
