簡體   English   中英

如何打開不在組 chrome 選項卡中的新選項卡?

[英]How to open new tab not in group chrome tab?

您好,我遇到了一些奇怪的問題,不知道如何解決,看起來 chrome 進行了一些更新並在組中打開新選項卡是否有選項可以在我的 javascript 中更改某些內容以在 chrome 選項卡中打開新選項卡而不是在組選項卡中。

<a href="http://google.com" class="button-1" onclick="open_win()">Button</a>
<script type="text/javascript">
            
                        function open_win() {
                
                window.open("http://bing.com")
            }
        </script>

嘗試這個

function openWindow(url, title) {
    var myWindow = window.open(url, title, "height=640,width=960,toolbar=no,menubar=no,scrollbars=no,location=no,status=no");
}

參考: https ://www.w3schools.com/jsref/met_win_open.asp

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM