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:
window.onload = function(){
iframeHEAD.removeChild(iframeSCRIPT);
}
will remove the script tag, but not before the script tag's code is executed.