Shower thought: ` ` should transfer a link in a desktop into my phone. Same goes for `target="_desktop"` but in the opposite direction.
Why does target="_blank" have an underscore in front? (2024)
31–40 of 203 posts
Re: Why does target="_blank" have an underscore in front? (2024)
#32Earlier quoted context omitted.
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 h…
Re: Why does target="_blank" have an underscore in front? (2024)
#33My first "web app" used frames, it was good times. Some time later I used backbone.js, and while it was still good times, it did get a lot more complicated (e.g. having to manually disconnect and reconnect 'child' elements when the main element re-rendered so that they would retain their event handlers).
Re: Why does target="_blank" have an underscore in front? (2024)
#34Earlier quoted context omitted.
[flagged]
> SHOWER THOUGHT definition: a sudden idea that occurs to a person during an unconnected mundane activity https://www.collinsdictionary.com/dictionary/english/shower-...
https://www.collinsdictionary.com/dictionary/english/tongue-...
(Not mocking, I just really liked the explanation and it happened to be the same site)
Re: Why does target="_blank" have an underscore in front? (2024)
#35Because “blank” can be a real frame name if you want to make your codebase a little harder on purpose. You still see _blank for links opening in new windows, but _parent, _self, etc not so much anymore.
The title of the post isn't asking HN users a question
Re: Why does target="_blank" have an underscore in front? (2024)
#36The answer is a little unsatisfying to me. It says that "blank" ca be a frame name, but doesn't say why "_blank" can't be.
Yeah it’s not a great explanation. To me (and I’m of the era they’re describing so I used it a lot) it’s simply that _blank is a reserved keyword that means open the link in a new, unnamed window. Other reserved keywords for “target” are _self (default value), _parent, and _top. https://www.w3schools.com/TAgs/att_a_target.asp
Re: Why does target="_blank" have an underscore in front? (2024)
#37The answer is a little unsatisfying to me. It says that "blank" ca be a frame name, but doesn't say why "_blank" can't be.
Yeah it’s not a great explanation. To me (and I’m of the era they’re describing so I used it a lot) it’s simply that _blank is a reserved keyword that means open the link in a new, unnamed window. Other reserved keywords for “target” are _self (default value), _parent, and _top. https://www.w3schools.com/TAgs/att_a_target.asp
Re: Why does target="_blank" have an underscore in front? (2024)
#38Re: Why does target="_blank" have an underscore in front? (2024)
#39Earlier quoted context omitted.
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 h…
Sounds like a new product idea for services a la "login via apple-id/windows/google/...". Name it something like "send session to..."
It is a shame that the family computer does not exists anymore - a place where you can't just assume that the same account is logged in on related devices.
Re: Why does target="_blank" have an underscore in front? (2024)
#40Earlier quoted context omitted.
Yeah it’s not a great explanation. To me (and I’m of the era they’re describing so I used it a lot) it’s simply that _blank is a reserved keyword that means open the link in a new, unnamed window. Other reserved keywords for “target” are _self (default value), _parent, and _top. https://www.w3schools.com/TAgs/att_a_target.asp
But why was _name the naming syntax for reserved keywords, specifically?