簡體   English   中英

Chrome Window.open掙扎

[英]Chrome Window.open strugles

我有以下代碼:

<script>
window.open("https://www.google.com", menubar=0, true);
window.open("https://www.google.com", menubar=0, true);
window.open("https://www.google.com", menubar=0, true);
window.open("https://www.google.com", menubar=0, true);    </script>

插入了http頁面。 Chrome瀏覽器會在新窗口(而不是新標簽頁,新窗口)中打開鏈接( https://www.google.com )。 為何Chrome無法打開4次? 我允許彈出窗口顯示修改后的頁面。 控制台顯示類似以下內容:此頁面不是同源的,也不是URL的父頁面。

這是什么意思,以及如何使其正常工作?

在Java腳本中,您可以這樣做

$(function(){ 
    window.open(url, windowName[, windowFeatures]); 
});

暫無
暫無

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

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