Share via

Does Edge browser no longer support using "_blank" to open a new Edge window?

leesaye 50 Reputation points
2023-07-28T08:38:30.23+00:00

hello, here's a button in my page, and i want to open a new edge window(not new edge tab) by clicking this button. my code is like below:

but i just found no matter i use <a href="https://www.youtube.com" target="_blank"> or window.open('https://www.youtube.com','_blank') or <a href="https://www.youtube.com" target="_blank" rel="noreferrer noopener">,

it just doesn't work. seems like edge ignore '_blank' attribute. and open in a new tab instead new window does edge no longer support using "_blank" to open a new Edge window?

Microsoft Edge | Microsoft Edge development
0 comments No comments

Answer accepted by question author

Anonymous
2023-07-31T07:31:33.4633333+00:00

Hi @leesaye,

it just doesn't work. seems like edge ignore '_blank' attribute. and open in a new tab instead new window does edge no longer support using "_blank" to open a new Edge window?

As far as I know, and from what I've tested in most modern browsers, window.open() opens a new tab by default (including using the _blank attribute) rather than a new application window. If you need to open it as a new window, you need to define it as a popup. Something like this:

const windowFeatures = "left=100,top=100,width=320,height=320";
            const handle = window.open(
                "https://www.mozilla.org/",
                "mozillaWindow",
                windowFeatures,
            );

For more details, please refer to this doc: Window: open() method.

Best regards,

Xudong Peng


If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.