<iframe src="abc.asp" name="abc"></iframe>在abc.asp中写入这么一些程序,如下:
<body>中添加
<body onload="abc()">
将下面的程序添加在页面上
<script language="javascript">
function abc() {
parent.abc.style.width=document.body.offestWidth;
parent.abc.style.height=document.body.offestHeight;
}
</script>
<body>中添加
<body onload="abc()">
将下面的程序添加在页面上
<script language="javascript">
function abc() {
parent.abc.style.width=document.body.offestWidth;
parent.abc.style.height=document.body.offestHeight;
}
</script>
<script>
function onload()
{parent.iframeName.height=document.body.scrollHeight;
parent.iframeName.width=document.body.scrollWidth;
setTimeout("top.scrollTo(0,0)",1);
}
</script>
<script>
function onload()
{parent.iframeName.height=document.body.scrollHeight;
parent.iframeName.width=document.body.scrollWidth;
setTimeout("top.scrollTo(0,0)",1);
}
</script>