Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-30-2008, 02:57 PM   PM User | #1
dav2002gr
New to the CF scene

 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
dav2002gr is an unknown quantity at this point
Innerhtml and script

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?
dav2002gr is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:06 AM.


Advertisement
Log in to turn off these ads.