62,074
社区成员
发帖
与我相关
我的任务
分享
self.parent.frames.rightFrame.location.reload();
这句话你要改一下,适应你的页面你的页面有frame吗?没有的话直接reload()
<asp:Label ID="Nowdate_label" runat="server" Text="Nowdate"></asp:Label>
<script type="text/javascript">
var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
function showServerTime()
{
xmlhttp.open("head",".",false);
xmlhttp.send(null);
document.getElementById("Nowdate_label").innerHTML=new Date(xmlhttp.getResponseHeader("Date")).toLocaleString();
}
setInterval(showServerTime,1000);
function target(){
self.parent.frames.rightFrame.location.reload();
}
</script>