Bookmarklet or hot key to generate a character string
I’ve always wanted links in my posts to open in a new window, and today I finally bothered to work out how this is done, it took me 2 seconds to find that this is all it takes: target=_blank.
eg. <a href="http://www.google.com" target=_blank>Google</a>…you get this, Google.
This is very handy, how many times have you forgotten to right-click “Open in new window”, and you click on the link and it opens in the same browser, then you have to remember to use the back button to get to the earlier page…when you doing lots at once you may forget about this earlier page.
Anyway the purpose of this post is that the quick tags in my draft blog posts don’t include the “target=_blank”
…what happens is I highlight a word, click on the [link] quick tag, and a box pops up, I enter the link and it wraps it around my word, simple…but I want a [link] quick tag that includes the extra stuff.
I don’t want to type it in manually everytime, so I was thinking if there is a bookmarklet that I could use instead of the quick tag in my blog.
Or at the least, if I could hit the bookmarklet and it would pop up a box with the string: target=_blank, then I could just copy and paste this.
I wonder if there is a tool where you can program a key on your keyboard to type a word when you press it
…this way I could make my hyperlink as usual, but then move the cursor to just before the “>” , in …>Google</a>
and press the special key.
[ADDED: The way I was able to show raw code in this blog post was by using centricle encode/decode, this is one of my tool kit essentials.]













