簡體   English   中英

谷歌瀏覽器 window.open 名稱打開新 window

[英]Google Chrome window.open with name opening new window

因此,假設您有一個名為daddy的頁面,它打開了一個名為testbug

<html>
    <head>
        <title>daddy: Window.open bug</title>       
    </head> 
    <body>
        <script type="text/javascript">
            var new_win = window.open('', "testbug", 'toolbar=1, menubar=1, status=1, left=0, top=0', true);
        </script>
    </body>
</html>

如果用戶關注 window 以外的其他內容,並再次打開此頁面,則新的daddy daddy會打開一個新的testbug子 window。 So now instead of having two daddy windows and one testbug window (as is the behaviour in IE && ff) there is two daddy windows and two testbug windows.

所以我的問題是我需要什么來防止這種情況發生?

PS:這是一個內部應用程序,是我們在真實應用程序上的一個非常簡單的版本。


更新

我將此問題提交給 google chrome 團隊,在決定如何處理此問題之前,我將等待查看他們的回復。

我唯一一次看到第二個testbug被打開是如果我關閉daddy window 然后重新打開它。 如果我專注於另一個 window 然后刷新daddy window,相同的testbug仍然打開。

您能否詳細說明您使用的是哪個版本的 Chrome 以及您的操作系統? 您最好的選擇可能是提交錯誤並直接與 Chromium 支持團隊合作。 他們將能夠對場景進行故障排除並確定它是否可復制。

暫無
暫無

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

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