js刷新页面,meta刷新页面,自动刷新,自动跳转

作者:Liaodeity - 2015年03月10日

js刷新页面方法

history.go(0) 
location.reload() 
location=location 
location.assign(location) 
document.execCommand('Refresh') 
window.navigate(location) 
location.replace(location) 
document.URL=location.href

meta自动刷新页面的方法

在head标签内,60秒刷新一次页面

<meta http-equiv="refresh" content="60">

meta页面自动跳转

5秒后,跳转到www.jianbaizhan.com

<meta http-equiv="refresh" content="5;url=http://www.jianbaizhan.com">

js返回上一页

<script>javascript:history.back(-1);</script>


本文作者: Liaodeity

本文链接: https://www.jianbaizhan.com/article/109

版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 许可协议。转载请注明出处!


 请勿发布不友善或者负能量的内容。审查将对发布广告等违规信息进行处罚!