可以先得到leftframe的parent.通过parent找mainframe

解决方案 »

  1.   

    在leftFrame里面:
    <script>
    ...
    parent.mainFrame.location="http://..."
    parent.topFrame.location="http://..."
    ...
    </script>
      

  2.   

    如果是个链接,干脆这么干:
    <a href="javascript:window.parent.mainFrame.location='http://...';parent.topFrame.location='http://...'>test</a>
      

  3.   

    糟,写少一双引号:<a href="javascript:window.parent.mainFrame.location='http://...';parent.topFrame.location='http://...'">test</a>