81,094
社区成员
发帖
与我相关
我的任务
分享
%//设置刷新页面的时间,第隔1秒钟刷新一次
response.setHeader("refresh","10");
%>
<head>
<title>无标题文档</title>
<script>
var i = 0;
function aaa(){
div1.innerHTML = i++;
setTimeout("aaa()",1000);
}
</script>
</head>
<body onload="aaa()">
<iframe src="aaa.html"></iframe>
<div id="div1"></div>
</body>
</html>
<head>
<title>无标题文档 </title>
<script type="text/javascript">
function myRefresh(){
top.document.location.reload();
}
</script>
</head>
<body>
<input type="button" value="刷新父窗口" onclick="myRefresh()"/>
</body>
</html>