My goal is to have all the pages in a multiframe web application to run a specific script without making me to copy paste the script in every page so
i inserted the code in the frame onload event to get every time the page changes
<frame name="FRAME_APP" onload="myfunction();" ......... >

then i created the function which was being called
function myfunction()
var sScript="<SC" + "RIPT DEFER>";
sScript = sScript + "ACTUAL CODE";
sScript = sScript + "</SCRIPT" + ">";

document.frames['FRAME_APP'].document.body.innerHTML + sScript

but while common text gets to every page, executable javascript nevers makes to the pages
Anybody has any idea?