External HTML into no scroll IFRAME

admin

Administrator
Staff member
I am trying to load the content of an external html page into an iFrame. This is easy in itself however I do not want the iFrame to have a scroll bar, all scrolling should be controlled by the standard browser scroll.

I managed to find a solution on the net for this problem but it has created another: any javascript functionality on the child page is lost because the solution I have uses innerHTML and any javascript appears to be ignored.

Both pages will reside within the same domain however I wish to keep them as completely separate entities (only retaining the parent/child relationship). I do not wish to move the javascript from the child page into the parent which I believe would solve this problem.

I have attached 2 files which are an example of the problem I have (my actual code has irrelevant content for the purposes of this discussion).

I'm not sure if the innerHTML method can work, I've tried playing around with document.all but with no success (I'm not very experienced in JS).

Please let me know if what I am trying to do is possible, example code for a solution would be greatly appreciated.

Thank you.
 
Back
Top