window.setTimeout('window.reload()',300000);

解决方案 »

  1.   

    <meta http-equiv="refresh" content="300">
    放在<head>和</head>之间
      

  2.   

    <meta http-equiv="refresh" content="300;url='XXX.htm'">
    自动刷新
    =========================================================
    <form name="XX" METHOD="post" target="_blank">
    新打开页面
      

  3.   

    但是自动提交一个form好象不行,最好能给些提示代码,比如其中有二个check按钮,一个submit按钮,我想在刷新后,选中其中的一个check,然后实现自动提交form,我试了几次,都不行,最好能调试一下,然后请我这个form以及javascript的代码..万分感谢!
      

  4.   

    自动提交的话,可以用 window.setTimeout('XXX()',ttt); 来实现。
      

  5.   

    function autoSubmit(){
      var chkv=document.getElementById("chkbox").value;
      if(chkv!=""){
          window.open("aa.php?chk="+chkv,"");
      }
      setTimeout("autoSubmit",300000);
    }
      

  6.   

    <meta http-equiv="refresh" content="300000">
      

  7.   

    <html>
    <head>
    <Script language="javascript">
    setTimeout('location.reload();myform.submit()',30000)
    </script>
    <title> New Document </title>
    </head>
    <body>
    <form name="myform" action="http://www.google.com" target="_blank">
    <input type="text">
    <input type="submit" name="ak47">
    </form>
    </body>
    </html>