还是showModelessDialog的问题 B页面改用setTimeout()来执行刷新吧,根据是否非模态对话框返回的值来决定是否跳转 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不用刷新,用Xmlhttp结合setInterval来定时访问数据库 <head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" ><% if(1==1)//如果没有新信息{ %><meta http-equiv="refresh" content="20"><%}else{ %><script language=javascript>window.showModelessDialog("about:<input type=button value=OK onclick='dialogArguments.location.reload();'>",window,"");</script><%}%><title>支持民族工业,尽量少买日货</title></head> <html xmlns:IE><head><title>对话框使用Download Behavior刷新</title></head><script>function showPage(){ oDownload.startDownload("active.asp",onDownloadDone); setTimeout("showPage()",1000*120);}function onDownloadDone(s){ return true}</script><body onload="setTimeout('showPage()',1000*120)"><IE:DOWNLOAD ID="oDownload" STYLE="behavior:url(#default#download)" /></body> active.asp 可以不返回任何代码,如果有代码,在 onDownloadDone(s) 中 s就是代码可以是一段脚本然后 eval(s) 就可以了 js接受串口无法接受串口数据,什么原因? 如何在firefox下用js控制播放声音 MM_dragLayer 问题 求一javascript中跨页传值的例子 如何设置一个网页的大小 JAVASCRIPT 弹出窗体 求:实现关闭一窗口时刷新另一窗口 急~~~!!! 如何给创建的 TD obj 加入onclick 动作 需要这种效果....怎么实现???????????? 有什么可以代替IFRAME? 令IE挂掉的代码
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" >
<% if(1==1)//如果没有新信息
{
%><meta http-equiv="refresh" content="20"><%
}
else{
%><script language=javascript>window.showModelessDialog("about:<input type=button value=OK onclick='dialogArguments.location.reload();'>",window,"");</script><%
}
%>
<title>支持民族工业,尽量少买日货</title>
</head>
<head>
<title>对话框使用Download Behavior刷新</title>
</head>
<script>
function showPage()
{
oDownload.startDownload("active.asp",onDownloadDone);
setTimeout("showPage()",1000*120);
}
function onDownloadDone(s)
{
return true
}
</script>
<body onload="setTimeout('showPage()',1000*120)">
<IE:DOWNLOAD ID="oDownload" STYLE="behavior:url(#default#download)" />
</body>
如果有代码,在 onDownloadDone(s) 中 s就是代码
可以是一段脚本
然后 eval(s) 就可以了