求一段页面刷新小代码,3秒钟之后页面自动刷新

解决方案 »

  1.   

    <meta HTTP-EQUIV="refresh" CONTENT="3;URL=http://......"> 
      

  2.   


    <script>
    window.location.reload();
    </script>
      

  3.   

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <title>Untitled Page</title>
        <script language="javascript" type="text/javascript">
        function Refresh()
        {
            window.setInterval("document.location.reload(true);", 3000);
        }
        </script>
    </head>
    <body onload="Refresh()">
        <input id="Text1" type="text" />
    </body>
    </html>
      

  4.   

    setInterval("self.location.reload()",3000)
      

  5.   

    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>新建网页 1</title>
    </head><body>
    <script language="javascript">
    <!--setTimeout("window.location.href='http://www.163.com'",2000);
    //-->
    </script>
    </body></html>
      

  6.   

    <meta http-equiv="refresh" content="3">放在<head></head>之间既可

    <script language="JavaScript">
    function myrefresh()
    {
           window.location.reload();
    }
    setTimeout('myrefresh()',3000); //指定3秒刷新一次
    </script>
      

  7.   


    location.href = window.location.href;
      

  8.   

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <title>Untitled Page</title>
        <script language="javascript" type="text/javascript">
        function Refresh()
        {
            window.setInterval("document.location.reload(true);", 3000);
        }
        </script>
    </head>
    <body onload="Refresh()">
        <input id="Text1" type="text" />
    </body>
    </html>
      

  9.   

    <meta HTTP-EQUIV="refresh" CONTENT="3;URL=www.baidu.com"> 
    3秒后自动跳转到百度