Why do I get the whole document's content instead of an iframe content?I try to work with an iframe object within my document through DOM interfaces.To obtain an iframe, I use the following approach:
curWindow.Document.all.item( frameName )
where "curWindow" is an active document, which contains IFRAME, and "frameName" is the iframe's id. I get an object, which looks like the needed IFRAME (I am able to access its properties like id or src - all is fine). But I can't access the frame's content! I get the content of the whole document instead :)IFRAME is described in the parent document like the following:
<iframe src="ViewOverFillAction.do?method=overFillSearch" width="100%" height="300" frameborder="0" scrolling="no" id="overfillFrame"></iframe>
I try to access the frame's content in a following way:
Frame.Document.documentElement.outerHTML.value
where "Frame" is an object which I get for the needed IFRAME