Javascript - how to change elements content inside a page when using iframes, using dom, not jquery
- by Erez
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 :-)