0

看看我的代码,它只打开第一个链接并忽略其余的,

<a href="#" onclick="window.open('http://whitepages.co.nz/white-residential/T%20Vu/new-zealand/'); window.open('http://whitepages.co.nz/white-residential/T%20Vu/Auckland Central/'); window.open('http://whitepages.co.nz/white-residential/T%20H%20Vu/new-zealand/'); window.open('http://whitepages.co.nz/white-residential/T%20H%20Vu/Auckland Central/'); window.open('http://whitepages.co.nz/white-residential/H%20Vu/new-zealand/'); window.open('http://whitepages.co.nz/white-residential/H%20Vu/Auckland Central/'); window.open('http://whitepages.co.nz/white-residential/Vu/new-zealand/'); window.open('http://whitepages.co.nz/white-residential/Vu/Auckland Central/'); " class="btn btn-primary">Open All</a>
4

2 回答 2

0

你可以这样使用

<a href="http://www.gmail.com" target="_blank" onclick="window.open('http://www.google.com'); window.open('http://www.yahoo.com');">Link text</a>
于 2013-01-30T03:47:10.157 回答
0

感谢您的评论和回答伙计们。它像索达森所说的那样工作。它阻止了我浏览器中的弹出窗口。当我启用弹出窗口时,它会URL在不同的窗口中打开。

于 2013-01-30T04:15:39.140 回答