标签:head ack bsp 自动跳转 fresh asc java exe 另一个
<a href="javascript:history.go(-1)">返回上一页</a>
<a href="javascript:location.reload()">刷新当前页面</a>
<a href="javascript:" onclick="history.go(-2); ">返回前两页</a>
<a href="javascript:" onclick="self.location=document.referrer;">返回上一页并刷新</a>
<a href="javascript:" onclick="history.back(); ">返回上一页</a>
页面跳转:
onclick="window.location.href=‘list.php‘"
Javascript刷新页面的几种方法:
1,history.go(0)
2,location.reload()
3,location=location
4,location.assign(location)
5,document.execCommand(‘Refresh‘)
6,window.navigate(location)
7,location.replace(location)
8,document.URL=location.href
自动刷新页面的方法:
1.页面自动刷新:把如下代码加入<head>区域中
<meta http-equiv="refresh" content="10">
10指每隔10秒刷新一次页面.
2.页面自动跳转:把如下代码加入<head>区域中
<meta http-equiv="refresh" content="10;url=http://www.baidu.com">
10指隔10秒后跳转到http://www.baidu.com页面
js自动刷新当前页面:
JS刷新框架的脚本语句
要关闭窗口时刷新或开窗时刷新,在<body>中调用以下语句即可:
标签:head ack bsp 自动跳转 fresh asc java exe 另一个
原文地址:http://www.cnblogs.com/tangchangcai/p/7811341.html