页面刷新重载方法汇总
来源:互联网 发布:君子去仁 恶乎成名注解 编辑:程序博客网 时间:2024/06/11 10:51
1.JS刷新重载方法
<a href="javascript:location.reload();">点击重新载入页面</a><a href="javascript:history.go(0);">点击重新载入页面</a><a href="javascript:location=location;">点击重新载入页面</a><a href="javascript:location=location.href;">点击重新载入页面</a><a href="javascript:location.replace(location);">点击重新载入页面</a><a href="javascript:location.replace(location.href);">点击重新载入页面</a><a href="javascript:location.assign(location);">点击重新载入页面</a><a href="javascript:location.assign(location.href);">点击重新载入页面</a><!--// 以下只支持ie --><a href="javascript:document.URL=location.href;">点击重新载入页面</a><a href="javascript:navigate(location);">点击重新载入页面</a><a href="javascript:document.execCommand('Refresh');">点击重新载入页面</a><!--// 以上只支持ie -->
2.html链接重新载入方法
<!--// 以下不支持ie --><a href="">点击重新载入页面</a><!--// 以上不支持ie --><a href="页面本身">点击重新载入页面</a>
3.页面自动刷新
<meta http-equiv="refresh" content="20"> //代码放在head中,每隔20秒钟刷新一次<meta http-equiv="refresh" content="20;url=http://www.haorooms.com"> //20秒之后页面跳转到haorooms中,通常运用到404页面
4.返回上一页和下一页
history.go(-1)//返回上一页(括号中写-2代表返回上两页)history.back()//返回上一页window.history.forward() //返回下一页
阅读全文
0 0
- 页面刷新重载方法汇总
- html-javascript前端页面刷新重载的方法汇总
- html-javascript前端页面刷新重载的方法汇总
- 页面刷新方法汇总
- 页面刷新方法汇总
- 页面刷新方法汇总
- js刷新页面方法汇总
- javascript刷新页面方法汇总
- 页面刷新方法汇总(转载)
- javascript刷新页面的方法汇总
- p.net 子页面刷新父页面,页面自动刷新方法汇总
- Javascript 刷新框架及页面的方法汇总(转)
- javascript刷新父页面的各种方法汇总
- js之刷新父页面的各种方法汇总
- javascript刷新父页面的各种方法汇总
- JS 页面刷新或重载
- 页面刷新与 iframe 重载
- html页面刷新或重载
- Kinect v2 Examples with-SDK 提示 技巧和示例简介
- swift建立oc中pch文件
- Android中WebView的缓存机制 & 资源预加载方案
- 继承父类私有成员是否可以修改
- 【Matlab】Canny算子提取边缘
- 页面刷新重载方法汇总
- cocos 坐标转换
- vue 上传图片
- vue---生命周期函数
- Java高级工程师面试题目汇集(关于Struts,Spring,Hibernate三大框架的面试)
- Aidl简单了解
- 软件质量模型的6大特性和27个子特性
- 容器service endpoint with name xxx already exist问题
- SVN-无法查看log,提示Want to go offline,时间显示1970问题