title: execute javascript as coldfusion page loads
body: <p>I have a ColdFusion page that on it, has several <code>cfinclude</code> template calls which include separate files into the page.  I would like to update a javascript variable before each <code>cfinclude</code> template call.  I've tried using:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  myvariable = 'new status';
  &lt;/script&gt;
  </code></pre>
  
  <p>However, the javascript doesn't get executed until every single template included on the page finishes processing, instead of before each one executes.</p>
  
  <p>Is there some way I can actually execute javascript code AS the page loads?</p>