比如:<iframe src="d.htm" id="dd"></iframe>
在d.htm里:
<body onload="parent.window.document.all.dd.height=document.body.scrollHeight" topmargin="0">
在d.htm里:
<body onload="parent.window.document.all.dd.height=document.body.scrollHeight" topmargin="0">
<body onload="mm()">function mm() //若有动态修改 iframe 内容的时候再调用一下这个函数即可
{
if(top!=self)
{
parent.document.all.midFrame.height = document.body.clientHeight;
}
}
parent.document.all.midFrame.height = document.body.scrollHeight;
parent.document.all.midFrame.style.height=document.body.scrollHeight;
}
iframe和frame有啥区别,为什么我的代码中有
<iframe name="asd".....>
<textarea name="user" visible="false"></textarea>
其中在另一个页面用jsp接受传来的参数,却是从textarea传来的参数,可是输入数据是从
iframe框输入的,那么iframe和textarea的关系是什么呢???