愚墨的博客
  • 首页
  • 前端技术
  • 面试
只争朝夕不负韶华
  1. 首页
  2. 前端技术
  3. 正文

html-javascript前端页面刷新重载的方法

2015年07月08日 2256点热度 0人点赞 0条评论

一、javascript页面刷新重载的方法:

点击重新载入页面
点击重新载入页面
点击重新载入页面
点击重新载入页面
点击重新载入页面
点击重新载入页面
点击重新载入页面
点击重新载入页面

点击重新载入页面
点击重新载入页面
点击重新载入页面

二、html链接重新载入方法


点击重新载入页面

点击重新载入页面

三、自动刷新页面的方法

  //代码放在head中,每隔20秒钟刷新一次

  //20秒之后页面跳转到百度中,通常运用到404页面

//js自动刷新
function myrefresh()
{
     window.location.reload();
}

setTimeout('myrefresh()',1000); //指定1秒刷新一次

三、返回上一页和下一页的方法

history.go(-1)//返回上一页(括号中写-2代表返回上两页)

history.back()//返回上一页

window.history.forward()  //返回下一页
标签: 暂无
最后更新:2016年07月25日

愚墨

保持饥渴的专注,追求最佳的品质

点赞
< 上一篇
下一篇 >

文章评论

取消回复

搜搜看看
历史遗迹
  • 2023年5月
  • 2022年9月
  • 2022年3月
  • 2022年2月
  • 2021年12月
  • 2021年8月
  • 2021年7月
  • 2021年5月
  • 2021年4月
  • 2021年2月
  • 2021年1月
  • 2020年12月
  • 2020年11月
  • 2020年9月
  • 2020年7月
  • 2020年5月
  • 2020年4月
  • 2020年3月
  • 2020年1月
  • 2019年5月
  • 2019年3月
  • 2019年2月
  • 2019年1月
  • 2018年9月
  • 2018年3月
  • 2018年2月
  • 2018年1月
  • 2017年11月
  • 2017年7月
  • 2017年6月
  • 2017年3月
  • 2017年2月
  • 2017年1月
  • 2016年12月
  • 2016年11月
  • 2016年9月
  • 2016年8月
  • 2016年7月
  • 2016年6月
  • 2016年5月
  • 2016年4月
  • 2016年3月
  • 2016年2月
  • 2016年1月
  • 2015年12月
  • 2015年10月
  • 2015年9月
  • 2015年7月
  • 2015年6月
  • 2015年4月

COPYRIGHT © 2020 愚墨的博客. ALL RIGHTS RESERVED.

THEME KRATOS MADE BY VTROIS