JS刷新页面的几种方法

JS刷新页面的几种方法:

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

框架页中:(框架页中其中一个子页)

top.location.reload();   刷新整页  
self.location.reload();  刷新本页
window.parent.location.href='' 框架页重定向 

自动刷新页面的方法:

<meta http-equiv="refresh" content="20">指每隔20秒刷新一次页面

原创文章,转载请注明: 转载自HSBLOG

本文链接地址: JS刷新页面的几种方法