我有一个框架,里面包含A.jsp 和 B.jsp
当B.jsp通过 <meta http-equiv= "refresh "方式(如果用其他方式能够 实现定时跳转更好)跳转到其他页面,同时刷新A.jsp,请大家帮忙
------解决方案--------------------
我把 CSDN 错误跳转的页面改造了下, 你琢磨琢磨~~~
实现功能: 3秒后, 两个页面同时跳转
这个是框架
<frameset rows= "50%, * ">
<frame src= "csdn.html ">
<frame src= "about:blank " name= "target ">
</frameset>
下面是 csdn.html
<%@ Page Language= "C# " EnableViewState= "false " %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<script type= "text/javascript ">
<!--
var duration=2900;
var endTime = new Date().getTime() + duration + 100;
function interval()
{
var n=(endTime-new Date().getTime())/1000;
if(n <0) return;
document.getElementById( "timeout ").innerHTML = n.toFixed(3);
setTimeout(interval, 10);
}
window.onload=function()
{
setTimeout( "window.location.href= 'http://community.csdn.net/index.htm ' ", duration);
interval();
}
//-->
</script>
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head runat= "server ">
<title> 发生错误 </title>
</head>
<body>
<form id= "form1 " runat= "server ">
<div>
对不起!你所访问的页面出错! <br />
系统在 <span id= "timeout "> 3.000 </span> 秒后 将自动跳转到 <a href= "http://community.csdn.net/index.htm "> 社区首页 </a>
</div>
</form>
</body>
</html>