window:
document
location
header("Location:login.php");
window.navigate(url)
location.href='url'
location.replace('url')
记的:
location='url'
location.reload(true);
history
history.back();
history.go(-2);
screen
其它杂项
设首页
收藏
-
-
-
-
-
<html>
-
<head>
-
-
-
<title>Demo</title>
-
-
<script type="text/javascript" charset="utf-8">
-
-
setTimeout(function(){
-
-
-
//window.navigate('pop.html');
-
//window.location.href='pop.html';
-
-
//location='pop.html'; //主要方式
-
-
//location.replace('pop.html');//不能后退
-
-
location.reload(true);//每隔3秒刷新一次;
-
},3000);
-
-
-
document.write(new Date()+"
");
-
document.write(new Date()+"
");
-
document.write(new Date()+"
");
-
document.write(new Date()+"
");
-
document.write(new Date()+"
");
-
document.write(new Date()+"
");
-
document.write(new Date()+"
");
-
document.write(new Date()+"
");
-
</script>
-
-
</head>
one.html
-
<a href="two.html">two</a>
two.html
-
<a href="three.html">three</a>
-
<a href="javascript:history.back()">反回</a>
three.html
-
<a href="javascript:history.go(-1)">返回上一步</a>
-
<a href="javascript:history.go(-2)">反回上二步</a>
阅读(906) | 评论(0) | 转发(0) |