setTimeout in javascript question
<p>I understand that the <code>setTimeout</code> function spawns a separate thread that waits for x milliseconds before executing the JS function</p>

<pre><code>setTimeout(functionName, timeInms);
</code></pre>

<p>My question is if there's a way to tell it to run <em>after the JS on the page has completed executing?</em> Since this depends on how much JS is on the page, this cannot be an absolute number.</p>

<p>This is a part of a bigger problem I have that I had posted here:</p>

<p><a href="http://stackoverflow.com/questions/1435503/registerstartupscript-and-order-of-execution/1435572">link text</a></p>

<p>The gist is that ScriptManager does not guarantee the order of execution and I have to run the <code>EndScript</code> function at the very end. It kinda works with the <code>setTimeOut</code> although it's not very accurate (since the JS on the pages differ)</p>
