Javascript - how to change elements content inside a page when using iframes, using dom, not jquery

Posted by Erez on Stack Overflow See other posts from Stack Overflow or by Erez
Published on 2010-05-19T17:52:02Z Indexed on 2010/05/19 18:10 UTC
Read the original article Hit count: 374

Filed under:
|
|

Hello all,

I have this iframe and as u can see it call a js function with the onload trigger.

<iframe name="top" id="top" width="99%" height="20%" src="top.htm" frameborder="0" scrolling="no" onload="log_in()"></iframe>

What i need to do is to effect the element inside "top.htm" (change innerHTML and stuff like that) from that function.

But the problem is that the funnction does not recognize the elements of the "top.htm" page, only the ones in index.htm (the page with the iframes).

p.s. i have to use DOM and i have to use iframes.

Any one knows how to do that?

10x :-)

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dom