문제

I've been using an adapted version of this code:

HTML Input Buttom

I've adapted it to have one button to search multiple sites..

<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;">

Which works fine but in Chrome only first Search window opens as a new tab, the other two open as pop ups. Is there anyway to get them all to open as tabs?

도움이 되었습니까?

해결책

window.open(url, '_blank') sometimes opens in a new tab, but usually in a new window depending on how it is used. You cannot control it directly using Javascript unfortunately.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top