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 - Mozilla
The open() method of the Window interface loads a specified resource into a new or existing browsing context (that is, a tab, a window, or an iframe) under a specified name. js · open() open(url) open(url, target) open(url, target, windowFeatures) url Optional ·
🌐
W3Schools
w3schools.com › jsref › met_win_open.asp
Window open() Method
cssText getPropertyPriority() ... ... More examples below. The open() method opens a new browser window, or a new tab, depending on your browser settings and the parameter values....
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › javascript-window-open-window-close-method
Javascript Window Open() & Window Close() Method - GeeksforGeeks
August 5, 2025 - JS Tutorial · Web Tutorial · ... Updated : 5 Aug, 2025 · The Javascript Window.Open() method is used to open the web pages into a new window or a new tab....
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › javascript-window-open-method
JavaScript window.open() Method - GeeksforGeeks
August 5, 2025 - JS Tutorial · Web Tutorial · ... : 5 Aug, 2025 · The Javascript window.open() method is used to open a new tab or window with the specified URL and name....
🌐
Educative
educative.io › answers › what-is-the-windowopen-method-in-javascript
What is the window.open() method in JavaScript?
All parameters of this method are optional. If none is specified, the method will open a new blank browser window.
🌐
Javascript-coder
javascript-coder.com › window-popup › javascript-window-open
Using the window.open method | JavaScript Coder
window.open ("http://jsc.simfatic-solutions.com","mywindow"); You can control the features of the popup using the last argument to the window.open method. The following code opens a window with a status bar and no extra features. window.open ("http://jsc.simfatic-solutions.com","mywindow","status=1"); The code below opens a window with toolbar and status bar.
Find elsewhere
🌐
Reintech
reintech.io › blog › tutorial-working-with-the-window-open-method
Working with the window.open() Method | Reintech media
January 13, 2026 - The window.open() method provides JavaScript developers with programmatic control over browser windows and tabs.
🌐
JavaScript.info
javascript.info › tutorial › frames and windows
Popups and window methods
A name of the new window. Each window has a window.name, and here we can specify which window to use for the popup. If there’s already a window with such name – the given URL opens in it, otherwise a new window is opened.
🌐
ZetCode
zetcode.com › dom › window-open
JavaScript window.open Guide: Learn How to Open Browser Windows
April 2, 2025 - Learn how to use JavaScript's window.open method effectively with examples and detailed explanations. Enhance your web development skills with this step-by-step tutorial.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Mozilla › Add-ons › WebExtensions › API › windows › create
windows.create() - Mozilla | MDN
July 17, 2025 - Note: This API is based on Chromium's chrome.windows API. This documentation is derived from windows.json in the Chromium code. window.open · Was this page helpful to you? Yes · No Learn how to contribute · This page was last modified on Jul 17, 2025 by MDN contributors.
🌐
University of New Mexico
unm.edu › ~tbeach › IT145 › week13 › example10.html
Javascript Opening Windows
(In the example above, the first link opens a window with the name demo4. You don't see that name, but it's the name of the new window. The second link opens a different page into the same window, replacing the first page, since it also was target to demo4. ALSO, notice that I did something different in the second link by making the window object myWindow, and then adding another JavaScript command, after the semicolon, that give focus to myWindow.
🌐
SitePoint
sitepoint.com › javascript
JS to open window - JavaScript
February 22, 2018 - This is the code that I currently use to open a window for a click here for explanation. <div class=body><a id="terms" name="explain" style="font-size:12px;color:blue;text-decoration:underline; cursor:pointer;" onclick=…
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › API › Window › opener
Window: opener property - Web APIs | MDN
April 10, 2025 - A Window-like object referring to the window that opened the current window (using window.open(), or by a link with target attribute set).
🌐
Electron
electronjs.org › opening windows from the renderer
Opening windows from the renderer | Electron
Non-standard features (that are not handled by Chromium or Electron) given in features will be passed to any registered webContents's did-create-window event handler in the options argument. frameName follows the specification of target located in the native documentation. When opening about:blank, the child window's WebPreferences will be copied from the parent window, and there is no way to override it because Chromium skips browser side navigation in this case.
🌐
Reality Ripple
udn.realityripple.com › docs › Web › API › Window › open
Window.open() - Web APIs
If the empty string ("") is specified as url, a blank page is opened into the targeted browsing context. ... A DOMString specifying the name of the browsing context (window, <iframe> or tab) into which to load the specified resource; if the name doesn't indicate an existing context, a new window is created and is given the name specified by windowName.
🌐
Infimum
infimum.dk › HTML › JSwindows.html
Javascript windows - Infimum Border Design
Since "window" is a reference to the global object, the function is also a global variable, and can be referred to by just "open" (unless another variable with the same name is in the scope). It is traditionally written out as "window.open", which helps to distinguish it from "document.open".
🌐
EncodedNA
encodedna.com › 2013 › 09 › javascript-window-open-method.htm
Open a New Browser Window using JavaScript open() Method
Accepts values like 0 and 1 or yes and no to specify if the window can be resized once opened. Now, this behavior varies from browser to browser. Try this in different browsers, particularly with Internet Explorer and see the result. The default is 0 or no. var win = window.open('popupwindow.htm', 'New Window','width=300,height=300,top=70,left=500,resizable=no');