Specify window "features" to the open call:

window.open(url, windowName, "height=200,width=200");

When you specify a width/height, it will open it in a new window instead of a tab.

See https://developer.mozilla.org/en-US/docs/Web/API/Window.open#Position_and_size_features for all the possible features.

Answer from DNS on Stack Overflow
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › API › Window › open
Window: open() method - Web APIs | MDN
Note: open() calls cannot be used to register an attribution trigger. ... By default, window.open opens the page in a new tab. If popup is set to true, it requests that a minimal popup window be used. The UI features included in the popup window will be automatically decided by the browser, generally including an address bar only.
🌐
W3Schools
w3schools.com › jsref › met_win_open.asp
Window open() Method
window.open("http://www.google.com/"); window.open("https://www.w3schools.com/"); Try it Yourself » · Open a new window.
🌐
OutSystems
outsystems.com › forums › discussion › 65977 › open-link-in-a-new-window-not-tab
Open link in a new window (NOT TAB) | OutSystems
I have a link on my page, and I want it to open it in a new window (not a new tab) when clicking it. Currently, this link points to a new screen action, and in this new screen action I have a RunJavaScript server action with the following script: · However, it still open the link in new tab ...
🌐
Reddit
reddit.com › r/chrome_extensions › open new window (not new tab)?
r/chrome_extensions on Reddit: Open new window (not new tab)?
May 17, 2025 -

I'm trying to have a new window opened from the extension popup, but the best I can get is a new tab.. js that would work fine on a normal html page window.open("https://website.com", "aaaaa", "width=500,height=500") just opens a new tab instead when ran from the extension popup is there some special way with chrome.tabs API or whatever..? I tried looking online but all the code I could find (even stuff specifically for manifest v3 or whatever) didn't do anything at all.

🌐
JSFiddle
jsfiddle.net › tompryor › 3Bd8s
Open New Browser Window (not tab) w/closure - JSFiddle - Code Playground
Just open the Coder Fonts mini-app from the sidebar or from Editor settings. My current favorites are Input and Commit Mono. Our CSS Flexbox generator lets you create a layout, and skip knowing the confusing properties and value names (let's be honest the W3C did not make a good job here).
🌐
GitHub
gist.github.com › 3427328
jquery open new window NOT tab in Chrome · GitHub
jquery open new window NOT tab in Chrome. GitHub Gist: instantly share code, notes, and snippets.
Find elsewhere
🌐
Webmaster World
webmasterworld.com › html › 4064011.htm
Forcing new tab (not window) using javascript? - HTML forum at WebmasterWorld - WebmasterWorld
However, the browsers (apart from Chrome and Safari as far as I can see) do have a user preference as regards to Windows OR Tabs. In Firefox (3.5), Tools > Options > Tabs > "Open new windows in a new tab instead". Appears to be checked by default ...
🌐
JavaScript.info
javascript.info › tutorial › frames and windows
Popups and window methods
They only work reliably on popups that we opened, that have no additional tabs. ... JavaScript has no way to minify or maximize a window. These OS-level functions are hidden from Frontend-developers. Move/resize methods do not work for maximized/minimized windows.
🌐
Zipy
zipy.ai › blog › how-to-open-a-url-in-a-new-tab-and-not-a-new-window
how to open a url in a new tab (and not a new window)
April 12, 2024 - A common yet critical feature is opening a URL in a new tab rather than in a new window. This action not only keeps the user's current context intact but also adheres to the modern web navigation patterns that users have come to expect. In this comprehensive guide, we'll explore how to achieve this using JavaScript...
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › how-to-open-url-in-a-new-window-using-javascript
How to open URL in a new window using JavaScript? - GeeksforGeeks
August 21, 2025 - The anchor tag (<a>) can also be utilized with JavaScript to open URLs in new windows or tabs. By specifying target="_blank", the link will open in a new tab.
🌐
Kriesi
kriesi.at › home › topics › enfold › open in new window (not tab)
Open in new window (not tab) - Support | Kriesi.at - Premium WordPress Themes
September 20, 2015 - ... That code won’t work because the av_image_spot shortcode doesn’t support such attribute (onclick). One thing you can do is use the included popup script to make the content open as a lightbox, you can activate it on a link by simply adding ?iframe=true at the end:
🌐
WebDeveloper.com
webdeveloper.com › community › 280955-trying-to-get-google-chrome-to-open-a-new-tab-instead-of-a-new-window-using-js
Trying to get Google Chrome to open a new tab instead of a new window using JS
I know that Chrome has limited options for tab preferences and I’ve read solutions such as “right click and select new tab” or “install an extension” but bear in mind we’re talking about user interaction here and they are not going to want to install extensions and they may not always read a line that says “Oh, don’t forget to right click and choose new tab!” because this will bypass my ajax call. Hope that’s clear! I tend to ramble a lot, so if anyone wants me to clarify something please ask. Any help much appreciated! ... After a simple Ajax call, it grabs the website that is required and then runs the following: [CODE]window.open(website,'_newtab');[/CODE] [/QUOTE]Presumably you're calling window.open in a readystatechange handler.