这样可以保持父窗口内容,但我就想要超链接方式,不想用按钮
<BUTTON onclick="javascript:window.open('test.htm');">
Click this button and document.open() is called.
</BUTTON>
<BUTTON onclick="javascript:window.open('test.htm');">
Click this button and document.open() is called.
</BUTTON>
啥意思?
Click this button and document.open() is called.
</a>
<a href="javascript:return false;" onclick='javascript:window.open("test.htm");'>
Click this button and document.open() is called.
</a>
afoskoo(暂停打印) ( ) 信誉:105 2006-3-26 15:55:16 得分: 0
但父窗口的内容确变为[object]
啥意思?=------------------------------
你把楼顶的代码粘到一个html文件中,点击链接,你就明白了。
Click this button and document.open() is called.
</a>好用。多谢