question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It would be great for Linking to provide an option to open in a new window/tab. (Or is there already a way to do this?)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
jfrolichcommented, Feb 28, 2020

It’s impossible. The user has to click to a link. Browsers require that.

window.open second argument is target, if I use that with "_blank" it opens in a new tab (at least in Chrome)

0reactions
avanwinklecommented, Apr 9, 2022

Resurrecting this thread to ask why the implementation hard-coded _blank as the target, instead of the other proposal https://github.com/necolas/react-native-web/pull/1743 which allowed a parameter?

I ask because there are scenarios where the desired behavior is not to open in a new tab, but that is currently impossible due to the hard-coded _blank.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Use HTML to Open a Link in a New Tab - freeCodeCamp
The Anchor Element ... To create a link on a web page, you need to wrap an element (text, a picture, and so...
Read more >
3 Ways to Open a Link in a New Tab - How-To Geek
Method 1: Ctrl+Click ... Ctrl + Click. The first method requires a keyboard and a mouse or trackpad. Simply press and hold the...
Read more >
Open a new tab
To open a link in a new tab, right click on the link, then select Open Link in New Tab or use the...
Read more >
Open in new tab
With this extension, add the domain and all links in the domain will open in a new tab. Useful for websites such as...
Read more >
How to open a new tab in an Internet browser - Computer Hope
The fastest method to open a new tab in all browsers is to press the shortcut key combination Ctrl + T (PC users)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found