<input type=button value="open" onclick="window.open('test.htm','ifrm')">
<iframe name="ifrm"></iframe>or onclick="ifrm.location.href='test.htm'"

解决方案 »

  1.   

    <html>
    <body>
    <input type="button" onclick="document.all('testm').src='test1.asp';value="显示"><br>
    <iframe name="testm" width="200" height="200" frameBorder=1 scrolling="no" style="scroll: no"></iframe></td>
    </body>
    </html>
      

  2.   

    除了他们的方法还可以是:
    <input type=button value="open" onclick="window.frames('ifrm').location='http://www.163.com';">
    <iframe name="ifrm"></iframe>
      

  3.   

    http://wufanglu.myrice.com/ 
    中的第一版树形结构就用到了跨框架的代码。
    不过,那是从框架里中控制框架外面的内容。