You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resurrecting this thread to ask why the implementation hard-coded _blank as the target, instead of the other proposal #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.
Activity
steida commentedon Feb 26, 2020
It's impossible to open a new tab without a link with the target.
jfrolich commentedon Feb 26, 2020
Sure? I think it's possible with
window.open?https://stackoverflow.com/questions/14132122/open-url-in-new-window-with-javascript
steida commentedon Feb 26, 2020
Window, not tab. Remember it's restricted because of popups.
jfrolich commentedon Feb 27, 2020
You are right. I formulated it wrong, it should be open in new tab.
[-]Open in new window[/-][+]Open in new tab[/+]steida commentedon Feb 28, 2020
It's impossible. The user has to click to a link. Browsers require that.
jfrolich commentedon Feb 28, 2020
window.opensecond argument is target, if I use that with"_blank"it opens in a new tab (at least in Chrome)Sharcoux commentedon Sep 21, 2020
Could this solve this issue?
[change] Linking.openURL() opens in new tab.
avanwinkle commentedon Apr 9, 2022
Resurrecting this thread to ask why the implementation hard-coded
_blankas the target, instead of the other proposal #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.[change] Linking.openURL() opens in new tab.