JS--刷新当前页面

来源:互联网 发布:观人于微而知其著 编辑:程序博客网 时间:2024/06/05 15:48

 

 http://blog.csdn.net/xxb2008

//Javascript刷新页面的几种方法:history.go(0) location.reload() location=location location.assign(location) document.execCommand('Refresh') window.navigate(location) location.replace(location) document.URL=location.href//框架刷新opener.location.reload()   ////子窗口刷新父窗口window.opener.document.location.reload()parent.FrameID.location.reload(); //刷新iframe window.parent.frames[1].location.reload()//刷新frame window.parent.frames.bottom.location.reload() //bottom frame名称//自动刷新页面的方法:<meta http-equiv="refresh" content="20"> //每隔20秒刷新一次<meta http-equiv="refresh" content="20;url=http://www.aaa.net"> //指隔20秒后跳转到http://www.aa.net页面

http://blog.csdn.net/xxb2008

 

0 0