<input type="button" value="Refresh" onClick="frm.location.reload();">
<iframe id="frm" src="xx.htm" width=90 height=100 scroll="YES" class="iframe1"></iframe>Refresh按钮刷新iframe(frm)。

解决方案 »

  1.   

    <html>
    <body>
    <OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0>
      </OBJECT> 
    <input type=button value=刷新     onclick=document.execCommand('refresh',false,0)>
    </body>
    </html>
      

  2.   

    execCommand的参数都是什么意思啊?
    好像刷新了好几次呢,怎么样才能只刷新一次呢?
      

  3.   

    调试过了
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
    <script>
    function ref(){
    location.reload(1);
    }
    </script>
    </head><body>
    <input type="submit" name="Submit" value="refresh" onClick="ref()">
    hahaha 
    </body>
    </html>