How can I run script that was added to the page with innerHTML?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2592092/executing-script-elements-inserted-with-innerhtml">Executing &lt;script&gt; elements inserted with .innerHTML</a><br>
  <a href="http://stackoverflow.com/questions/3114035/dynamically-inserting-script-tags-into-html-on-page-load">Dynamically Inserting &lt;script&gt; tags into HTML on Page Load</a>  </p>
</blockquote>



<p>What I mean is that if I do .innerHTML write that contains</p>

<pre><code>&lt;script type="text/javascript" src="source.js"&gt;&lt;/script&gt;
</code></pre>

<p>or</p>

<pre><code>&lt;script type="text/javascript"&gt; // embedded code here &lt;/script&gt;
</code></pre>

<p>The embedded code does not run and neither does the linked to code.  It is "dead".</p>

<p>Is there a way to manually trigger it?</p>
