81,092
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<title>实现iframe局部刷新 </title>
</head>
<body>
<div id="iframeDiv" style="display:block;position:absolute;left:200px;top:300px;width:200px;height:1000px">
<iframe id="parentIframe" name="parentIframe" src="parentIframe.html" scrolling="yes"> </iframe>
</div>
<button name="refresh" onclick="reloads()">实现局部刷新 </button>
</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
function reloads()
{
document.parentIframe.location.reload();
}
var date = new Date();
document.write(date);
//-->
</SCRIPT>