页面刷新事件
- history.go(0)
- location.reload()
- location=location
- location.assign(location)
- document.execCommand('Refresh')
- window.navigate(location)
- location.replace(location)
- document.URL=location.href
自动刷新方法
指定时间间隔刷新页面
<meta http-equiv="refresh" content="10">
指定时间间隔后跳转
<meta http-equiv="refresh" content="10;url=http://www.wyxg.com">
定时刷新页面
<script language="JavaScript">
function myrefresh() {
window.location.reload();
}
setTimeout('myrefresh()',1000); //指定1秒刷新一次
</script>