I need to access and element from within a frameset frame. For example if I have the following markup:
<frameset rows="33%,33%,*">
<frame id="demo" src="frame1.html"/>
<frame src="frame2.html"/>
<frame src="frame3.html"/>
</frameset>
Answer:
document.getElementById("demo").contentDocument.documentElement.innerHTML;
You need to get the Document object for the frame.
window.frames[1].document.getElementById('someElementId')
You can try using framename as well
window.frames['frame_name'].document.getElementsByName('element_name');