function forFatherFunction1(){ alert(iframe1.document.getElementById("myDIV").innerHTML); }
<input type="button" onclick="forFatherFunction1()" value="调用函数1"/>
<iframe src="child1.html" name="iframe1" id="sss" ></iframe>
子页面:
<div id="myDIV">sdfsdfsdf</div>
弹出的结果是层上的内容