I have a html document with code:
<iframe id="full_content_frame" src="tmpl_content1.htm" frameborder="0" width="100%">
<iframe id="full_content_frame" src="tmpl_content2.htm" frameborder="0" width="100%">
and in tmpl_contentX.html I have:
and main goal is to determine height of each frame and adjust iframe.height that all frames would be one by one vertically.
I am looking for any possibility to achieve that and one technique was successfull:
parent.document.getElementById(id).style.height = (this.document.body.scrollHeight) + "px";
But it will correctly adjust only the first frame. How I can apply such method for all frames in parent document?
Or is there another flexible method to adjust numerous ifames?