如果A页面为主页面,iframe出B页面
例:
<iframe id="FileSellListInner" name="FileSellListInner" src="B.aspx" scrolling="no" frameborder="0" width="100%" height="100%"></iframe>
1.A页面调用B页面js方法: (B页面有个js函数removeChildHtml)
parent.frames["FileSellListInner"].window.removeChildHtml(id);
2.B页面调用A页面js方法: (A页面有个js函数removeHtml)
parent.removeHtml(id);
3.如果A页面的iframe想根据B页面的高而实现自动高。那么A页面可以定义一个js函数,而B页面调用这个函数,传参数赋值。