Live data from Hacker News

Why does target="_blank" have an underscore in front? (2024)

kyrylo.org

11–20 of 203 posts

Re: Why does target="_blank" have an underscore in front? (2024)

#11

Shower thought: ` ` should transfer a link in a desktop into my phone. Same goes for `target="_desktop"` but in the opposite direction.

Should it really be up to the Website designer to decide?

On Firefox I have the "Send Link to Device" context action that allow me to open a link on my Phone or Desktop.

Re: Why does target="_blank" have an underscore in front? (2024)

#15
post #9

Shower thought: ` ` should transfer a link in a desktop into my phone. Same goes for `target="_desktop"` but in the opposite direction.

[flagged]

> SHOWER THOUGHT definition: a sudden idea that occurs to a person during an unconnected mundane activity

https://www.collinsdictionary.com/dictionary/english/shower-...

Re: Why does target="_blank" have an underscore in front? (2024)

#16
post #11

Shower thought: ` ` should transfer a link in a desktop into my phone. Same goes for `target="_desktop"` but in the opposite direction.

Should it really be up to the Website designer to decide? On Firefox I have the "Send Link to Device" context action that allow me to open a link on my Phone or Desktop.

In my product we have a photo app and for normal people it is just easier to have the transferred to the phone than to use a desktop computer (without a camera) to grab a picture.

We use QR codes to transfer the user - a solution would need to be as simple as that (Ie. not requiring the user to be logged in on the same browser or other shenanigans).

The current solution is a hasle, but works well - I can't envision how a target="_mobile" should solve this? Especially since you need to transfer authentication also.

Re: Why does target="_blank" have an underscore in front? (2024)

#17
post #11

Shower thought: ` ` should transfer a link in a desktop into my phone. Same goes for `target="_desktop"` but in the opposite direction.

Should it really be up to the Website designer to decide? On Firefox I have the "Send Link to Device" context action that allow me to open a link on my Phone or Desktop.

KDE Connect does that on Linux and Android across browsers.

Re: Why does target="_blank" have an underscore in front? (2024)

#18
I was expecting this post to explain why it's an underscore specifically, as opposed to a dollar sign, an asterisk, a caret, a tilde or some other special character.

I can only assume it's a holdover of languages like C where the standard library has some reserved names that start with an underscore.

https://devblogs.microsoft.com/oldnewthing/20230109-00/?p=10...

Post reply on HN