html--给自己看的

来源:互联网 发布:公司活动软文 知乎 编辑:程序博客网 时间:2024/05/02 00:38

------------------------关于iframe------------------------

this.height = document.body.scrollHeight;

this.height =  this.parentNode.clientHeight;

父窗口调用子窗口:

myFrame.window.functionName();
window.frames["iframe_ID"].document.getElementById("element_ID")

子窗品调用父窗口:

parent.functionName();

window.parent.document.getElementsByTagName("TagName");
//window.frames["iframe_ID"].document.getElementById("element_ID")