这样可以保持父窗口内容,但我就想要超链接方式,不想用按钮
<BUTTON onclick="javascript:window.open('test.htm');">
Click this button and document.open() is called.
</BUTTON>

解决方案 »

  1.   

    但父窗口的内容确变为[object]
    啥意思?
      

  2.   

    <a href="javascript:return false;" onclick='javascript:window.open("test.htm");">
    Click this button and document.open() is called.
    </a>
      

  3.   

    弄錯了,修改如下:
    <a href="javascript:return false;" onclick='javascript:window.open("test.htm");'>
    Click this button and document.open() is called.
    </a>
      

  4.   


     afoskoo(暂停打印) ( ) 信誉:105  2006-3-26 15:55:16  得分: 0  
     
     
       
    但父窗口的内容确变为[object]
    啥意思?=------------------------------
    你把楼顶的代码粘到一个html文件中,点击链接,你就明白了。
      

  5.   

    <a href="javascript:return false;" onclick='javascript:window.open("test.htm");'>
    Click this button and document.open() is called.
    </a>好用。多谢