It's a setting in chrome. You can't control how the browser interprets the target _blank.

Answer from Dennis Traub on Stack Overflow
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › API › Window › open
Window: open() method - Web APIs | MDN
The Window interface's open() method takes a URL as a parameter, and loads the resource it identifies into a new or existing tab or window. The target parameter determines which window or tab to load the resource into, and the windowFeatures parameter can be used to control to open a new popup ...
🌐
W3Schools
w3schools.com › jsref › met_win_open.asp
Window open() Method
The open() method opens a new browser window, or a new tab, depending on your browser settings and the parameter values.
🌐
Educative
educative.io › answers › what-is-the-windowopen-method-in-javascript
What is the window.open() method in JavaScript?
URL: The URL parameter specifies the URL that will be opened in the new window. If no URL is indicated, a blank browser window will be opened. name: The name parameter is like the target attribute.
🌐
SitePoint
sitepoint.com › get started
When to use target="_blank" or onClick="window.open()"? - Get Started - SitePoint Forums | Web Development & Design Community
April 26, 2010 - I have a couple questions regarding the topic in the title of this thread. Looking at a best practices standpoint, when is it alright or not alright to have a link open in a new window/tab? Looking at a usability standpoint, when is it alright or not alright to have a link open in a new window/tab?
🌐
Webmaster World
webmasterworld.com › html › 4683942.htm
Target=“ blank” vs window.open - HTML forum at WebmasterWorld - WebmasterWorld
HTML doesn't distinguish between "new window" and "new tab". It depends on how chummy your users are with their browser's prefs. ... Can someone add Target=“ _blank” to in-post links at WW Middle Click? (or SHIFT + Middle Click?) What's the shortcut on Mac? The · target attribute requires a transitional DOCTYPE in HTML 4, but OK in HTML 5. ... Ctrl+Click works for Chrome. But when the post goes like "look at the graph, during the months of...", one assumes that the link will open in a new tab to have it checked out while reading the post.
🌐
SitePoint
sitepoint.com › html & css
Target=“_blank” vs window.open - HTML & CSS - SitePoint Forums | Web Development & Design Community
June 30, 2014 - I’m working on an application ... use popup windows for such links. But does it have any advantage over a simple target=“_blank” attribute?...
🌐
GitHub
gist.github.com › sttk › 22e74eaadde493265f38c539f3cafb37
Window open · GitHub
If this value is "_parent", opens no new window and: If the window has a parent window, reload its parent window · If the window does not have its parent window (window.self === window.parent), make th window itself target.
Find elsewhere
🌐
Reddit
reddit.com › r/javascript › window.open is opening currenturl + target concatenated?
r/javascript on Reddit: window.open is opening currentUrl + target concatenated?
May 3, 2017 -

Hey, I'm using an HTML field, and then passing an HTML element into it using jQuery's '.html()' method. The button loads fine into the page, and it launches a new window when clicked, but the target ends up being a concatentation of the URL for the current page, plus the URL we're passing into it.

HTML

<div>
    <h4 id="link"></h4>
</div>

JavaScript (note, the URL is being pulled from an input text field, and is populated via database lookup)

$(document).ready(function() {
   var linkFill = function() {
    var url = encodeURIcomponent($('#q54 input').val());
    $('#link').html('<input type="button" value="Go To Incident Folder" onclick="window.open('+ "'" + url + "'" + ')" target="_blank">');
     console.log('url='+url);
  }
  
  $('#q49 input').blur(function() {
    setTimeout(linkFill, 2000);
  });

});

Thoughts?

🌐
W3C
w3.org › WAI › WCAG21 › Techniques › html › H83
H83: Using the target attribute to open a new window on user request and indicating this in link text | WAI | W3C
Use of the target attribute provides an unambiguously machine-readable indication that a new window will open. User agents can inform the user, and can also be configured not to open the new window.
🌐
Alexking
alexking.org › blog › 2005 › 12 › 30 › new-windows
window.open(this.href) vs target=”_blank”
Like most people who have migrated to XHTML for web development, I stopped using target="_blank" for opening links in new windows in favor of onclick="window.open(this.href); return false". They accomplish the same thing (opening the link in a new window) and the second one validates.
🌐
TutorialsPoint
tutorialspoint.com › target-a-window-using-javascript-or-html
Target a Window Using JavaScript or HTML
In this article we will learn how to use the TARGET attribute to open a website in a new window using HTML and JavaScript TARGET attribute of HTML A link's opening named frame or window is specified using the Target attribute of the anchor tag. T
🌐
Slickmedia
slickmedia.io › blog › open-links-in-specific-target-window-javascript-data-attributes
Open Links in Specific Target Window using JavaScript and Data Attributes
August 14, 2024 - A custom JavaScript that dynamically opens single or multiple links in a new window _blank or a window target format of your choosing, such as _self or _parent using Data Attributes.
🌐
Royal Apps
support.royalapps.com › support › discussions › topics › 17000016447
Difference between target=_blank and window.open : Royal Apps
In Web Page plugin, when TSX is full screen, when a popup window opened because of a target=_blank attribute (or right click / Open in New Window), it is opened in full screen. However, a call to window.open opens a popup window in the same ...
🌐
GitHub
github.com › whatwg › html › issues › 2636
Sort out window.opener behavior when a window.open with target targets an existing window · Issue #2636 · whatwg/html
Click the "do open" link, then follow the steps from the first testcase in the resulting window. Per spec, second alert should be "[object Window] false" but it's "[object Window] true" in Firefox, Chrome, and Safari. Live testcase at http://web.mit.edu/bzbarsky/www/testcases/window-opener/open-targeting-new.html
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › API › Window › opener
Window: opener property - Web APIs | MDN
A Window-like object referring to the window that opened the current window (using window.open(), or by a link with target attribute set).
🌐
Reality Ripple
udn.realityripple.com › docs › Web › API › Window › open
Window.open() - Web APIs
If javascript support is disabled or non-existent, then the user agent will create a secondary window accordingly or will render the referenced resource according to its handling of the target attribute: e.g. some user agents that cannot create new windows, like MS Web TV, will fetch the referenced resource and append it at the end of the current document. The goal and the idea is to try to provide - not impose - to the user a way to open the referenced resource, a mode of opening the link.