How can I get an element from within a frameset frame using JavaScript?
Posted
by Nick
on Stack Overflow
See other posts from Stack Overflow
or by Nick
Published on 2010-03-24T17:26:21Z
Indexed on
2010/03/24
17:33 UTC
Read the original article
Hit count: 191
I need to access and element from within a frameset frame. For example if I have the following markup:
<frameset rows="33%,33%,*">
<frame src="frame1.html"/>
<frame src="frame2.html"/>
<frame src="frame3.html"/>
</frameset>
How can I get some element from one of the child frames? I have tried this:
window.frames[1].getElementById('someElementId')
This results in a type error: getElementById() is not a function.
Can someone assist?
Thanks!
© Stack Overflow or respective owner