window.open("abc.htm", "context");

解决方案 »

  1.   

    可是我不想彈出一個新窗口啊﹐我只想點一下鏈接後﹐frame裡的內容改變而已﹗
      

  2.   

    你自己有没有试过这段代码?  在 window.open 里指定了打开新网页的window.name 就会在指定的框架里打开该网页. 就象链接里的 target 一样
      

  3.   

    这样写
    document.frames["context"].location.href="";
      

  4.   

    如果 你的链接不在context 里  用self.parent.document.frames["context"].location.href="目标页.htm";如果在self.location.href="目标页.html";
      

  5.   

    parent.top.context.location.href="test.htm"
      

  6.   

    在frame中加上id="context"
     然后:
    parent.context.location.href="显示的页面.htm"
      

  7.   

    parent.context.location.href="显示的页面.htm"更正=> <a href="#" onclick="parent.context.location.href='显示的页面.htm'">在frame中打开</a>
      

  8.   

    不好意思﹐除了jycjyc同志的完全正確﹐沒有任何錯誤之外﹐其它同志的都有問題﹗
    所以... ...