window.open as tabs not pop ups in Chrome
window.open as tabs not pop ups in Chrome
我一直在使用这段代码的改编版本:
HTML 输入屁股
我已经调整了它,有一个按钮来搜索多个站点。
<script>
function multiSearch(){
window.open (SEARCH URL A);
window.open (SEARCH URL B);
window.open (SEARCH URL B);
</script>
<input type="button" value="Latest Results" onClick="multiSearch;">
这工作正常,但在Chrome中,只有第一个搜索窗口作为新标签打开,其他两个作为弹出窗口打开。有没有办法让它们都作为选项卡打开?
window.open(url, '_blank')
有时会在新选项卡中打开,但通常会在新窗口中打开,具体取决于它的使用方式。不幸的是,你不能直接使用Javascript来控制它。
相关文章:
- Node.js's Buffer.writeFloatBE in Javascript
- Setting default onclick behavior for <img> tag in gene
- Lucene Search in Alfresco
- grep in JQuery to C#
- write HTML in JavaScript
- jQuery setTimeOut: in for-loop
- SetTimeout and clearTimeout in Javascript
- lightbox in html 5 and javascript
- HTMLInputElement in IE7
- Mongodb$in以与数组中相同的顺序获取结果
- element.dataset in Internet Explorer
- jQuery parent() in table
- Instagram oauth flow in angularjs
- In循环的In运算符前后
- 如何使用for in循环在javascript中显示对象中的对象
- Jquery change onchange in onload
- 重构 jQuery in JS 问题
- strongloop script.js run find in before delete方法:如何同步运行异步方法
- TicTacToe minimax AI in Javascript
- window.open as tabs not pop ups in Chrome