This is one of my favorite snippets of HTML code used to open a link in a new tab.
Having a link on your website or blog open in a new tab is very important, especially if you are linking to another website. You don’t want to drive people away from your own site. You don’t want them to forget to come back.
By using this snippet of HTML code to open a link in a new tab, people can jump over to the new tab, see what you want to share with them and your site is still open for them to return to.
Try the Joyfully Jobless Jamboree links below to see how it works. Beneath each link I have shown you what the HTML code looks like to open a link within the same tab (before) and what the HTML code looks like to open a link in a new tab (after).
Before – HTML code for a link that will open within an existing tab:
Joyfully Jobless Jamboree
After – HTML code for a link that will open in a new tab:
Joyfully Jobless Jamboree
This is the actual snippet of HTML code to open a link in a new tab: target=”_blank”





Thanks for the easy tip! It’s nice to know how WordPress does things. Sometimes there’s not a widget to do it for you!
it should be target=”new”
The code does work for tab browsing with Google Chrome and Mozilla’s Firefox
This would be an excellent tip if it actually worked. Target_blank opens a new explorer window not a new tab.
Thanks, Sandy. I’ve been wondering how to keep readers on my site when I put on links.
One extra “goodie” I’d really like to work out would be to open the link in the new tab BUT stay on my site. they can go look later after opening more links. That’s the idea anyway!
Do you have any idea how that could be done?
Thanks
Jennifer
HI!
This no new tab!! This new WINDOW!!
[...] Don’t drive people away from your site, have your links open in a new tab. [...]
Thanks, Sandy! Big time! I knew I was doing it wrong. I knew it was an easy fix, but I didn’t know what it was. Now I do. Doing some house keeping and going back through posts to make the adjustments. So appreciate
)
Jeanne