Author

Topic: Links should open in a new tab - Target="_blank" (Read 317 times)

sr. member
Activity: 756
Merit: 390
If, I am correct what you are stating is a mandatory requirement from Google to stay in its SERP! If I am wrong then please ignore me as I found out about it during a class project by my students. I am not sure whether this is something that the forum needs as we get a lot of new members by "word of mouth".

If that is not the case then as a user of an Android device you can view multiple pages on your mobile using simple controls/gestures. What you need to do is to open a new tab on chrome, firefox, brave and other chrome browsers.

Scroll down and hit the rectangle button to view all open pages as we as apps. If you are using gesture control then just swipe up from below and you will find multiple screens that are active. Just swipe through them to find the page or app you were working on/reading.

I hope that should solve your issue. If not then we can discuss it further.
legendary
Activity: 1666
Merit: 1037
There are a lot of reasons for this.

It sucks to lose the thread just to click on a Casino Link, a Video, or an Image. For me, it feels not right.

So, it would be nice to add:

Code:
Target="_blank"

To each link on the site...

That way it would open links in a new tab, and I promise this will be something good for the forum and it will increase the traffic, and I don't mean more visitors, I mean the people will spend more time on the site because each time they get redirected to another site is like lose a customer, but that doesn't happen if links open in a new tab.

This is a good idea being suggested, I've also encounter loosing content or threads am supposed to post on just by clicking on links that override the current page i am on instead of opening the link on another tab, it should be noted that these links do take one off the forum and uses the current tab to load their website instead of loading on another tab, the more am very careful of opening links except am done with what am doing on bitcointalk page before checking on links, this will help members maintain being on forum than leaving unaware through click on links.

Solutions to your problem:
1. Make use of the bookmarks function that is available in almost any browser.
2. Make use of the right side of your mouse, which when you click a link, will offer the "Open in new tab" option. If you don't have a right click for some reason, hold CTRL and click the link (or CMD/alt depending on your OS/browser).

There's no need to enforce a feature something that is already functional, optional and only a click away in every OS and browser.
hero member
Activity: 714
Merit: 521
There are a lot of reasons for this.

It sucks to lose the thread just to click on a Casino Link, a Video, or an Image. For me, it feels not right.

So, it would be nice to add:

Code:
Target="_blank"

To each link on the site...

That way it would open links in a new tab, and I promise this will be something good for the forum and it will increase the traffic, and I don't mean more visitors, I mean the people will spend more time on the site because each time they get redirected to another site is like lose a customer, but that doesn't happen if links open in a new tab.

This is a good idea being suggested, I've also encounter loosing content or threads am supposed to post on just by clicking on links that override the current page i am on instead of opening the link on another tab, it should be noted that these links do take one off the forum and uses the current tab to load their website instead of loading on another tab, the more am very careful of opening links except am done with what am doing on bitcointalk page before checking on links, this will help members maintain being on forum than leaving unaware through click on links.
legendary
Activity: 1666
Merit: 1037
Do not use target="_blank" by itself, it is a security vulnerability! (more information here)

Instead, you should use both target="_blank" AND rel="noopener noreferrer" to mitigate the vulnerability.

Nice! I had no idea about his. It should be noted though, that the vulnerability is available only to those who have access to the site that is using target="_blank"

Please don't add this! I hate sites that decide when I get a new window (which my browser turns into a new tab). If it's a normal link, I can click it with my middle mouse button to open in a new tab on the background. I use that feature all the time.
But if the website decides for me, I can't use a normal click without getting a new tab, which always results in me closing the initial tab (by clicking my middle mouse button on the tab).




I've seen the middle-mouse button mentioned, but not everyone has that. Holding down the CTRL (Windows) or CMD (Apple) keys and clicking on any link will also open it in a new tab. It is better to not force this and let people decide. Once anything is added to all links, you can't stop them from opening in their own tab, which might annoy some people, I think it's better to let the user decide.

Not sure if ibminer is talking about the same thing here...but on some browsers/OSs (not sure specifically) clicking a link while holding CTRL (or ALT) will open it in a new tab.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
I'm on a laptop at the moment which only has a trackpad, by default I don't have the ability with any gestures or multi-finger clicks I do on the trackpad to open a new tab, I could try to change the mouse settings...
On Linux, the pressing left/right at the same time on the touchpad emulates the middle mouse button. Or, depending on the touchpad, you can click exactly in the middle.
legendary
Activity: 1789
Merit: 2535
Goonies never say die.
The middle-mouse button is the scroll wheel. Are there still people who don't have that? It makes life so much easier Cheesy
Sure there are, even if they do have a scroll wheel, by default the click could be doing something else unrelated to the browser and/or tabs. On Mac desktop mice, I think it opens mission control or expose. I'm on a laptop at the moment which only has a trackpad, by default I don't have the ability with any gestures or multi-finger clicks I do on the trackpad to open a new tab, I could try to change the mouse settings... but I've always just used CTRL/CMD. Smiley
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
I've seen the middle-mouse button mentioned, but not everyone has that.
The middle-mouse button is the scroll wheel. Are there still people who don't have that? It makes life so much easier Cheesy

Some scroll wheels can't emulate a middle-mouse button, and it's difficult to identify which ones don't, which is really annoying when I create CAD drawings.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
I've seen the middle-mouse button mentioned, but not everyone has that.
The middle-mouse button is the scroll wheel. Are there still people who don't have that? It makes life so much easier Cheesy
legendary
Activity: 1789
Merit: 2535
Goonies never say die.
I've seen the middle-mouse button mentioned, but not everyone has that. Holding down the CTRL (Windows) or CMD (Apple) keys and clicking on any link will also open it in a new tab. It is better to not force this and let people decide. Once anything is added to all links, you can't stop them from opening in their own tab, which might annoy some people, I think it's better to let the user decide.
hero member
Activity: 518
Merit: 547
That way it would open links in a new tab, and I promise this will be something good for the forum and it will increase the traffic, and I don't mean more visitors, I mean the people will spend more time on the site because each time they get redirected to another site is like lose a customer, but that doesn't happen if links open in a new tab.

I don't think the forum needs to do that. We don't go outside the forum all the time. Maybe we visit one or two websites daily on the forum. If you visit a casino link, exchange link or whatever link, You may click on the Middle mouse button to open a new tab. I agree that sometimes we lose concentration in the forum once we visit casinos or other websites. But we have solutions, too, without modifying the forum.
legendary
Activity: 3346
Merit: 3125
Do not use target="_blank" by itself, it is a security vulnerability! (more information here)

Instead, you should use both target="_blank" AND rel="noopener noreferrer" to mitigate the vulnerability.

Thanks for the warning, but as your article mention:

Quote
The main thing to understand is that, in order for blank-target links to be unsafe, the attacker needs control of the target page in order to execute their script. Otherwise there is no threat and the blank-target link is completely safe and secure. So it’s all about trust: do you 100% trust the pages that you’re linking to? If so, you have absolutely nothing to worry about.

If the link has some badass scripts it doesn't matter if it opens in a new tab or in the same one, the result will be the same, and as the article says, we need to trust the links we are opening before doing it. We all know the risks about open random links on internet, is not a safe place at all.

And rel="noopener noreferrer" is something new for me, I didn't know that exist but I like those functions. Looks like it's the right way to work with target blank nowadays and i will incorporate it in my next web designs, so, as always, thanks for sharing the knowledge.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
Do not use target="_blank" by itself, it is a security vulnerability! (more information here)

Instead, you should use both target="_blank" AND rel="noopener noreferrer" to mitigate the vulnerability.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
So, it would be nice to add:

Code:
Target="_blank"

To each link on the site...
Please don't add this! I hate sites that decide when I get a new window (which my browser turns into a new tab). If it's a normal link, I can click it with my middle mouse button to open in a new tab on the background. I use that feature all the time.
But if the website decides for me, I can't use a normal click without getting a new tab, which always results in me closing the initial tab (by clicking my middle mouse button on the tab).

the biggest problem remains in browsing from the phone.
Unfortunately, it is very annoying and clicking on it is difficult.
True, phones are annoying. But please don't adjust desktop behaviour because of limitations on phones.
On my phone, I hold the link for a menu that allows me to open it in a new tab. At least that way I don't open more taps than I wanted.
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
I am not very old here but I have read that the forum was once hacked and the data in the base leaked. I suspect that it is the reason some functions were disabled in the forum. Before now there is an option for external links to open in new window.
But if that practice continues, theymos thinks that routing this forum content directing to another url could be detrimental.
There was when I found it difficult to bear. But anything to keep our honorable forum alive and functional is worth it.
Where I see a link I want to click, I'll simply copy the link and paste in a new tab. I think that solves the problem within the short time.

This reminds me of one of the main reasons the air navigation system remains a system designed 50 years ago, with some updates over time.
It may seem strange, but it is by keeping a simple and unusual system that it manages to be a safer system with less chance of being hacked. So they just make the updates that are strictly necessary for everything to work with the new technologies that are emerging in aviation. But the base system is the same, no big extras.

It is better to have an older and more secure system than to have something very modern and more likely to be hacked.
legendary
Activity: 2688
Merit: 3983
That way it would open links in a new tab, and I promise this will be something good for the forum and it will increase the traffic, and I don't mean more visitors, I mean the people will spend more time on the site because each time they get redirected to another site is like lose a customer, but that doesn't happen if links open in a new tab.
It can be done from the browser settings easily, but the biggest problem remains in browsing from the phone.
Unfortunately, it is very annoying and clicking on it is difficult.

@theymos
I think we need a topic that brings together all urgent updates with their codes, so the process of adding them should be faster.
legendary
Activity: 1288
Merit: 1081
Goodnight, o_e_l_e_o 🌹

That way it would open links in a new tab, and I promise this will be something good for the forum and it will increase the traffic, and I don't mean more visitors, I mean the people will spend more time on the site because each time they get redirected to another site is like lose a customer, but that doesn't happen if links open in a new tab.

I am not very old here but I have read that the forum was once hacked and the data in the base leaked. I suspect that it is the reason some functions were disabled in the forum. Before now there is an option for external links to open in new window.
But if that practice continues, theymos thinks that routing this forum content directing to another url could be detrimental.
There was when I found it difficult to bear. But anything to keep our honorable forum alive and functional is worth it.
Where I see a link I want to click, I'll simply copy the link and paste in a new tab. I think that solves the problem within the short time.
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
I'm always in favor of simplicity, as long as it doesn't compromise security.
Really this kind of solution could simplify forum navigation and user activity. Bearing in mind that virtually all browsers today have the capability to handle security features for this scenario, I believe this could be a good implementation.

I believe that it is nothing complicated to implement, and in less than 5 minutes it would be working.
legendary
Activity: 1624
Merit: 2594
Top Crypto Casino
To each link on the site...

That way it would open links in a new tab
You can do it with your browser settings.

Like in Tor browser.
Settings > General > Tab > Choose "Open links in tabs instead of new windows"

I think this option is only applicable to links that already have the "target="_blank"" attribute set, which opens links in a new tab instead of a new window. However, the suggestion made by the OP is to have the target="_blank" attribute set for all links from the forum's side.



@theymos

That was years ago and nowadays any decent browser support for links.

I agree. As far as I know, the security concern that theymos mentioned in the post is no longer relevant.
copper member
Activity: 2940
Merit: 4101
Top Crypto Casino
Based on the quote below

Previously, user-generated links would often open in a new window/tab. However, kcud_dab found out that there are security issues with this, so I removed it. You'll have to middle-click links if you want them to open in a new tab.

If people find this disruptive, I could add rel=noreferrer to some of the target=_blank links, but then referrer info would never be sent, which might be undesirable.

@theymos

That was years ago and nowadays any decent browser support for links.
It tells to open the target resource "without the new browsing context access the previous document (the engine does not set Window.opener on the new context, its value will be null)."

Exemple with Chrome, Anchor target=_blank implies rel=noopener by default
legendary
Activity: 2310
Merit: 4085
Farewell o_e_l_e_o
To each link on the site...

That way it would open links in a new tab
You can do it with your browser settings.

Like in Tor browser.
Settings > General > Tab > Choose "Open links in tabs instead of new windows"

But depends on your Privacy settings, a new page can be loaded normally or not. There will be a pop-up message for you to confirm, agree to load that page or reject it.
legendary
Activity: 3346
Merit: 3125
There are a lot of reasons for this.

It sucks to lose the thread just to click on a Casino Link, a Video, or an Image. For me, it feels not right.

So, it would be nice to add:

Code:
Target="_blank"

To each link on the site...

That way it would open links in a new tab, and I promise this will be something good for the forum and it will increase the traffic, and I don't mean more visitors, I mean the people will spend more time on the site because each time they get redirected to another site is like lose a customer, but that doesn't happen if links open in a new tab.
Jump to: