document.frames.xxx.location.reload();
沙发

解决方案 »

  1.   

    document.frames.xxx.location.reload();
      

  2.   

    好象以前也试过,这样刷新iframe不行的,试试下面的笨办法
    <div id="yyy">
    <iframe name="xxx" src="http://www.google.com" width=250 height=200></iframe>
    </div><script>
    function myfunc(){
        yyy.innerHTML = yyy.innerHTML;
    }
    setTimeout("myfunc()",10000);
    </script>
      

  3.   

    那这样呢?
    <body>
    <iframe name="xxx" src="http://www.google.com" width=250 height=200></iframe>
    <script>
    function myfunc(){
    document.xxx.location.href=document.xxx.location.href;
    }
    setTimeout("myfunc()",10000);
    </script>
    </body>
      

  4.   

    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 1</title>
    <script language="javascript">
    function myfunc(){
    xxx.location.href="http://www.baidu.com";
    setTimeout("myfunc()",3000);
    }
    </script>
    </head><body>
    <iframe name="xxx" src="http://www.163.com" width=250 height=200></iframe><script language="JavaScript">
    <!--
    setTimeout("myfunc()",8000);//-->
    </script>
    </body></html>