Developing and testing features or extensions for Microsoft Edge
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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?
Developing and testing features or extensions for Microsoft Edge
Answer accepted by question author
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.