87,921
社区成员
发帖
与我相关
我的任务
分享
//最后一次网址
String wz = request.getRequestURI();
String cs = request.getQueryString();
if(cs==null)
{
session.setAttribute("zhwz",wz);
}
else
{
session.setAttribute("zhwz",wz+"?"+cs);
}
function tiaoZhuan()
{
window.location.href="<%=request.getAttribute("zhwz") %>";
}
//2秒后执行
window.setTimeout( "tiaoZhuan()",2000 );
<html>
<head>
<title></title>
<script>
</script>
</head>
<body >
<div><a href="b.htm">点这里进去B</a></div>
</body>
</html>
<html>
<head>
<title></title>
<script>
var t
function returntoa(){
t=setTimeout(back,5000)
}
function back(){
parent.history.back();
}
</script>
</head>
<body onload="returntoa()">
<input type="text" name="textfield" id="textfield"/>
<input type="submit" name="Submit" value="提交" />
</body>
</html>
<script type="text/javascript">
setTimeout("jump()",5000);
function jump(){
window.location.href="http://www.g.cn";
}
</script>
page B<BR>
jump after 5s...
<a href="B.htm">xxx</a>
<script>
window.onload = function(){
setTimeout("history.back()", 5000);
}
</script>
setTimeout(back(),5000)
function back(){
parent.history.back()
}