?

Log in

No account? Create an account

Previous Entry | Next Entry

Just a test

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

Comments

( 10 comments — Leave a comment )
polyfrog
Mar. 26th, 2015 02:31 pm (UTC)
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.
alicebentley
Mar. 26th, 2015 02:33 pm (UTC)
Oooo Good point!
alicebentley
Mar. 26th, 2015 02:35 pm (UTC)
What is the purpose of the underscore in "target=_blank" ?
polyfrog
Mar. 26th, 2015 02:38 pm (UTC)
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".
polyfrog
Mar. 26th, 2015 03:03 pm (UTC)
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.
apostle_of_eris
Mar. 27th, 2015 02:12 pm (UTC)
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.
polyfrog
Mar. 27th, 2015 04:00 pm (UTC)
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.
apostle_of_eris
Mar. 29th, 2015 04:20 am (UTC)
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.
polyfrog
Mar. 29th, 2015 12:31 pm (UTC)
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.
sff_corgi
Mar. 26th, 2015 07:31 pm (UTC)
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.
( 10 comments — Leave a comment )

Profile

after all
alicebentley
Alice Bentley

Latest Month

September 2017
S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930
Powered by LiveJournal.com