【发布时间】:2011-06-06 08:23:14
【问题描述】:
如何让按钮在新窗口中打开,模拟“a href, target = _blank”?
我目前有:
<button class="button" onClick="window.location.href='http://www.example.com';">
<span class="icon">Open</span>
</button>
按钮不在表单中,我只是想让它在新窗口中打开。
【问题讨论】:
标签: javascript html button window new-operator