title: removeChild <script> before JavaScript executes
body: <p>I have a local file that I am displaying in an iframe. I cannot alter the file (or any files included- css, script, etc). I need to remove all of the  tags from the file. This is easy enough, but I would like to remove them before the JavaScript inside them is executed. Simply doing:</p>
  
  <pre><code>window.onload = function(){
      iframeHEAD.removeChild(iframeSCRIPT);
  }
  </code></pre>
  
  <p>will remove the script tag, but not before the script tag's code is executed.</p>