alicebentley: (after all)
[personal profile] alicebentley
Because I want to see if things work like I think they do when I post a link here.

Shelf Life, edited by Greg Ketter

Date: 2015-03-26 02:31 pm (UTC)
erik: A headshot of me! (Photo)
From: [personal profile] erik
I always try to remember to add "target=_blank" to links; it makes them open in a new tab so people don't lose their place in their reading here.

Date: 2015-03-26 02:38 pm (UTC)
erik: A headshot of me! (Photo)
From: [personal profile] erik
I don't actually know. It's what I was shown, so it's what I do.
Generally though, leading underscores often indicate a meta-variable of some kind. Which would make sense in this case: you're referring to the idea of a blank (new) window, not an existing window named "blank".

Date: 2015-03-26 03:03 pm (UTC)
erik: A headshot of me! (Photo)
From: [personal profile] erik
Yes. If it was "blank" it would create a new tab and name it "blank". Which would then open the next link targeted at "blank" in that tab instead of a new one. "_blank" creates a new tab and doesn't name it anything.

Date: 2015-03-27 02:12 pm (UTC)
From: [identity profile] apostle-of-eris.livejournal.com
yes
more precisely,
<a href="foo.bar.org/baz" target="fubar">link!</a>
The values go inside quotes. I generally just make up a name for the target. Something not likely to be used anywhere else.
So that when the link is clicked it opens in a new tab instead of replacing your page in the same tab.

Date: 2015-03-27 04:00 pm (UTC)
erik: A headshot of me! (Default)
From: [personal profile] erik
See above; it turns out if you target "_blank" you get a new tab that is not named anything. Which avoids the name collision issue.

Date: 2015-03-29 04:20 am (UTC)
From: [identity profile] apostle-of-eris.livejournal.com
thanks!
I didn't know the underscore-blank gimmick. It looks like a real bastard shoved in despite conventions, but that's not my problem.

Date: 2015-03-29 12:31 pm (UTC)
erik: A headshot of me! (Default)
From: [personal profile] erik
It's part of the frames stuff. There are a couple more _foo metas for dealing with frames using target=; _self is just the one that is useful without frames.

Date: 2015-03-26 07:31 pm (UTC)
From: [identity profile] sff-corgi.livejournal.com
I've wondered about that myself, but 'it's just the way the code works'.

I got a perfectly good and functional link, by the way.

Profile

alicebentley: Studio photo of me with glasses (Default)
alicebentley

May 2017

S M T W T F S
 1234 56
78910111213
14151617181920
21222324252627
28293031   

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 22nd, 2017 02:33 am
Powered by Dreamwidth Studios