You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

[Safari 14]window.open with parameters will open in new window instead of new tab by default

In Safari 14, when we call window.open with parameters like

window.open("https://www.apple.com", "_blank", "noopener noreferrer"),

it will open the page in new window instead of new tab by default ("Open pages in tabs instead of windows" is set to Automatically).

While window.open without parameters like

window.open("https://www.apple.com", "_blank")

it will open in new tab.


And if we set "Open pages in tabs instead of windows" to Always, it will open in new tab.


Safari with old versions and other browsers are also opening page in new tab by default for this case.


So this should be a regression issue, please fix to keep the behavior consistent with window.open without parameters to open in new tab by default. Thanks.

MacBook Pro 16″, macOS 11.3

Posted on Aug 5, 2021 12:29 AM

Reply
1 reply

[Safari 14]window.open with parameters will open in new window instead of new tab by default

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.