PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > 开发编程 > 编程杂谈 > 正文

    网页自动刷新全部代码

    作者:admin来源:B5教程网浏览:时间:2020-09-30 00:07:50我要评论
    导读:①:<meta http-equiv="Refresh" c >②:<body >③:<script>window location reload(true);< script>④:<script>window navigate("
    ①:<meta http-equiv="Refresh" c />
    ②:<body >

    ③:<script>window.location.reload(true);</script>

    ④:<script>window.navigate("本页面地址");</script>

    ⑤:<%function abc()
      {
      window.location.href="/blog/window.location.href";
      setTimeout("abc()",10000);
      }%>


    ⑥:Response.Write("<script>window.location.href=window.location.href;</script>")

    ⑦:<script>setTimeout("location.href='url'",2000)</script>

    ⑧:刷新框架页
      
      〈script language=javascript>top.leftFrm.location.reload();parent.frmTop.location.reload(); 弹出窗体后再刷新的问题
      
      Response.Write("<script>window.showModalDialog('/index.asp',window,'dialogHeight: 300px; dialogWidth: 427px; dialogTop: 200px; dialogLeft: 133px')</script>");//open
      Response.Write("<script>document.location=document.location;</script>");
      在子窗体页面代码head中加入刷新的内容加在 if (!IsPostBack) 中
      
      在框架页中右面刷新左面
      //刷新框架页左半部分
      
      Response.Write("<script>");
      Response.Write("parent.left.location.href='/index.asp'");
      Response.Write("</script>");
      页面定时刷新功能实现
      

    ⑨:jsp:<!--esponse.setHeader("refresh","1");-->


    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-74-171-1.html
    相关热词搜索: 自动刷新