function command_refresh() {
   document.topp.location.href()
}
try,try

解决方案 »

  1.   

    document.topp.document.execCommand("Refresh");
    改成
    document.topp.location.reload();
      

  2.   

    定义id,可直接调用。
    如:<iframe id=iframe1>
    document.iframe1.location.reload();
      

  3.   

    不行的,提示错误,document.iframe1.location.reload();没有权限
      

  4.   

    晕~!试试下面的行否?
    document.getElementById("topp").document.execCommand("Refresh");

    document.all.topp.document.execCommand("Refresh");

    document.getElementsByTagName("iframe")[0].document.execCommand("Refresh");
      

  5.   

    不行,不行的,xzq686(瞬)所说的没有出现错误,不过不是刷新topp,刷新的是整个htm页面!
      

  6.   

    不行,不行的,xzq686(瞬)所说的没有出现错误,不过不是刷新topp,刷新的是整个htm页面!
    有没有人能够帮我解决问题!
      

  7.   

    <html>
    <head>
    <title>Html</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <link rel="stylesheet" href="CSS.css" type="text/css">
    <script>
    //function command_refresh() {
      // document.topp.document.execCommand("Refresh");
    //}
    function Message_onkeydown() {var iekey=event.keyCode;
       if (iekey==13){ 
        previewurl();
       }
    }
    function previewurl()
    {
     if (url.value.length==''){
       return false;
     }
     else{
       document.topp.location.href = "http://"+url.value;
     }
    }
    function senturl(){ 
      if (url.value.length=='') {
    return false;
      }
    else {
    var urlsent='1http://'+url.value;
    (top.top).iTouchNetConf.SetURL(urlsent,true);
    url.value='';
    }
    }</script>
    </head>
    <body bgcolor="#FEFFF6" leftmargin="0" topmargin="0" >
    <table width="102%" border="0" cellspacing="0" cellpadding="0" height="100%">
      <tr> 
        <td valign="top" height="15"> 
           <table width="100%" border="0" cellspacing="0" cellpadding="2">
                  <tr> 
                    <td width="32"><img src="image/image/jy11_13.gif" width="29" height="24" onClick="previewurl()"></td>
                    <td width="10"><img src="image1/line_v.gif" width="2" height="27"></td>
                    <td align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="100%">推送地址:http:// 
                            <input type="text" name="url" size="35" class="input_html" onkeydown="return Message_onkeydown();"> 
                            <input type=hidden name=urllink > </td>
                        </tr>
                      </table></td>
                  </tr>
                </table>
        </td>
      </tr>
      <tr> 
        <td valign="top" height="100%"><iframe frameborder=0 src="text.htm" name="topp" width=100% height=100% scrolling="auto"></iframe></td>
      </tr>
    </table>
    </body>
    </html>
      

  8.   

    function command_refresh() {
       document.topp.document.execCommand("Refresh");
    }改爲-->function command_refresh() {
       previewurl();
    }