That will open a new window, not tab (with JavaScript, but quite laconically):

<a href="print.html"  
    onclick="window.open('print.html', 
                         'newwindow', 
                         'width=300,height=250'); 
              return false;"
 >Print</a>
Answer from Ievgen 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.
🌐
Google Support
support.google.com › chrome › thread › 128260946 › i-want-chrome-to-open-each-ink-in-a-new-window-not-a-new-tab
I want Chrome to open each ink in a new window, not a new tab. - Google Chrome Community
Skip to main content · Google Chrome Help · Sign in · Google Help · Help Center · Community · Google Chrome · Terms of Service · Submit feedback · Send feedback on
🌐
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 ...
🌐
Opera
forums.opera.com › topic › 58859 › links-open-in-a-new-window-not-tab
Links open in a new window - not tab | Opera forums
November 23, 2022 - At the URL opera://extensions, disable your extensions one by one to see if one is causing the issue. ... Could be a stuck shift key on your keyboard. But, you'd notice that when typing.
Top answer
1 of 4
13

Thanks for reply. None of those options worked. The problem is 50/50, some hyperlinks it works find, others hyperlinks it doesn't.

  • Right clicking option is disabled (greyed out).
  • Holding CTRL doesn't work either. It still opens it in a new browser window
  • The problem seems to depend on the hyperlink.
  • I ran the powershell option on a test PC and nothing changed.
  • I know there is a way to fix this because my PC (profile) works just fine. I have a few other staff that work fine. But anytime I hire a new person or they log into the PC profile of their own, it reverts back to opening up links in a new window.

Chrome has a simple option that says (open links in a new tab), is there no simple setting option in edge? My company I'm contracted with requires us to use edge.

2 of 4
5

Hi JDSuser, welcome to the Microsoft community, my name is Bruno Leonel.

We will be happy to help and see if we can resolve this issue for you. Follow some of the recommended suggestions below that have helped others.

I understand that you are having problems opening links in a new tab and I will try to help you in the best way.

There are some possibilities to open a link in the same tab see below:

In Microsoft Edge, you can open a link in a new tab, just right-click on the link and then choose “Open in a new tab”

You can also use the Ctrl key (press it and keep it pressed) and click with the left mouse button and the link will open in a new tab.

NOTE: If the links that are opening in a new window are from the google search site

At the bottom of the page click settings -> search settings

And confirm that the following option is checked: "Open each selected result in a new browser window"

Give it a try, if it doesn't work, check the steps below:

To try to resolve it, follow the steps below:

step 1

With Microsoft Edge open press Alt+F;

Click "Settings" / "Reset Settings" / "Restore Settings to Default Values";

And confirm by clicking Reset;

Close the browser and open it again.

After this process, check if you are in agreement.

Step 2

Note: If when opening Microsoft Edge, a Welcome tab opens, it means that the browser has been reset. Make a backup of your bookmarks before performing this action.

Close Microsoft Edge.

Open the start menu and type PowerShell.

Right-click Run As Administrator.

Copy and paste the command below:

Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "C:\Windows\SystemApps\*Edge*\AppXManifest.xml"}
$manifest = (Get-AppxPackage *Edge*).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest

After the command execution is complete, try to open Microsoft Edge.

If the answer helped in any way, please mark it as an answer, if your question has not been solved, please post again.

I hope I helped, see you later!

Find elsewhere
🌐
Search Facts
searchfacts.com › search facts - all about seo and building great websites › web development › should you open links in the same or a new window / tab?
Should You Open Links in the Same or a New Window / Tab?
August 7, 2019 - Therefore, when discussing whether to open links in a new window or tab, this usually refers to opening a new browser tab, not a new browser window.
🌐
Western Washington University
marcom.wwu.edu › accessibility › guide › links-should-open-same-tabwindow
Links should open in the same tab/window | University Communications and Marketing | Western Washington University
Users are able to opt in to opening links in new tabs or browsers if they choose. Links that are set to open in new tabs/windows have no override for this behavior, so users are forced into a new tab/window whether they prefer that behavior or not.
🌐
W3C
w3.org › WAI › WCAG21 › Techniques › general › G200
G200: Opening new windows and tabs from a link only when necessary | WAI | W3C
The objective of this technique is to limit the use of links or buttons that open new windows or tabs within web content. In general, it is better not to open new windows and tabs since they can be disorienting for people, especially people who have difficulty perceiving visual content.
🌐
Reddit
reddit.com › r/firefox › how to force the browser to open any link in a new tab just by left click, especially for youtube?
r/firefox on Reddit: How to force the browser to open any Link in a new tab just by left click, especially for YouTube?
January 4, 2023 -

[Solved]

I mean only need left click, doesn't need to hold ctrl, or using middle button, etc.

In YouTube, when I **left** click a video, it always open in current tab. But I want to force it to open in new tab and then switch to that new tab.

I tried following extensions, but they don't work at all:

  1. Open Links in Tabs

  2. Open Link with New Tab

  3. Tap To Tab

  4. Tab Mix - Links

I also tried Chrome with some extensions, also failed.

So, is there anyway to satisfy my requirement?

---

Update:

This script works perfectly for me on YouTube:

https://greasyfork.org/en/scripts/23010-open-youtube-video-links-in-new-tab

🌐
Nielsen Norman Group
nngroup.com › articles › new-browser-windows-and-tabs
Opening Links in New Browser Windows and Tabs - NN/G
October 24, 2024 - Summary: Carefully examine the ... to open links to documents and external sites in the same or a new browser tab. Since 1999, it's been a firm web-usability guideline to refrain from opening new browser windows for several reasons. All of these also apply to opening new browser tabs and are still valid today: More windows or tabs increase the clutter of the user’s information space and require more effort to manage. New windows or tabs can cause disorientation, with users often not realizing ...
🌐
Duncan Mackenzie
duncanmackenzie.net › blog › do-not-open-new-tabs
Don't code links to open in a new tab or window. :: Duncan Mackenzie
May 30, 2024 - When you make a link on a web page, it is possible to provide an attribute (target) that tells the browser to open that link into a new tab or window. This is not the default. The default behavior is to stay in the same context (tab) that you are already in. With the default experience, the ...
🌐
CSS-Tricks
css-tricks.com › snippets › html › open-link-in-a-new-window
Open Link in a New Window | CSS-Tricks
May 14, 2013 - Because if I want to open link in new window, jsut press shift+mouse key. Or middle button (to open in new tab). ... I’d say it’s the best practice to use target=”_blank”, because it simply works.
🌐
Educative
educative.io › answers › how-to-open-hyperlinks-in-a-new-window-in-html
How to open hyperlinks in a new window in HTML
However, most browsers default to using a new tab instead of a new window. ... In JavaScript, the window object represents the browser window. The open() method of the window object can be used to create a new window. ... On line 6, window.open is used with the onclick attribute within the <a> tag. Parameters passed to window.open are as follows: this.href: It refers to href , the URL already specified in <a> tag. ... Lastly, return false; makes sure the original window is not redirected.
🌐
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.