简单点说就是用iframe的名字去调用它里面的文档的一个方法来触发其中的按钮的click事件.
如果把你的基本代码框架发上来,可以帮你写关键部分,不过现在你没贴...

解决方案 »

  1.   

    iframe.html:
    <iframe name="a" src="a.html" />
    <iframe name="b" src="about:blank" />
    -------------------
    a.html
    <input type="button" onclick="parent.frames['b'].location.href='b.html';">
      

  2.   

    我觉得我可以用一个父窗口和一个子窗口来实现的吧 不需要嵌套两个了 父窗口为ifram.aspx 子窗口为a.aspx,可是我需要实现的是运行时候子窗口的内容不显示出来,而当点了父窗口的button后,才显示子窗口a.aspx的内容呢;如何实现???
    iframe.aspx中
    <iframe id="a1" src="a.aspx" width="800" height="200" frameborder="0" scrolling="auto"></iframe>
    <input type="button" value="确定" onclick="parent.frames['a1'].location.href='a.axpx';">
      

  3.   

    那就和iframe没太大关系了
    <input type="button" value="确定" onclick="if(window.win && !window.win.closed)window.win.location.href='xx.axpx';else window.win=open('xx.aspx','win','');">
      

  4.   

    和iframe没关系??可是我需要子窗口内容选择好后可以提交到父窗口呀,这两个窗口是有一定联系的,
      

  5.   

    子窗口引用父窗口DOM : opener.document.xxxx
    父窗口引用子窗口DOM : win = open(); win.document.xxx
    父窗口引用iframe DOM :  document.frames["frame_name"].document.xxx
    iframe引用父窗口 DOM :  parent.document.xxxx
      

  6.   

    <input type="button" value="确定" onclick="if(windows.win && !windows.win.closed)windows.win.location.herf='a.aspx';else windows.win=open('a.aspx','win');">还是不行 网页上有错误 可能语法上不对了
      

  7.   

    iframe.html: 
    <input type="button" onclick="document.b.location.href='b.html';">
    <iframe name="b" src="about:blank" /> 
    这个不就行了啊 
    不过我感觉你是不太需要用iframe的勒 在这个页面上隐藏个div么好了
    如果你的b.html是动态的话用iframe