Open Target Link In New Window

How To Open Link In A New Window

In WordPress there is a feature in the admin of writing a post that allows you to choose your target window as being a new window or the same window.  Basically this means that when the target is a new window the visitor will go to the new page in a new tab or window and the existing page will remain open as a tab.  So, now there will be two windows or tabs open. When the target is the same window, your visitor will totally leave the page they are on and go to the next page.  In this scenario, the guest would have to click the “back” button to return to the first page. In the first example they would have both tabs open and could just click back and forth.

Target New Browser Window

The general rules of thumb for hyperlinking from your website are as follows:

  • If they are leaving the site, in other words you are linking to a site that is not a page within your blog, then you should generally have the target be a new browser window.
  • If you are hyperlinking to a page that is on your website, then have it open in the same window so that they just move to the new window.

That is not locked in stone but a good guideline.  The thought process here is that you do not want them to leave your site, so you keep the browser window open when they are being directed away so that they still have the option of continuing to peruse your site. Every situation is different and you can of course make your own decisions on a link by link basis.

html Link Open In New Window

The WordPress admin post hyperlinking tool gives you the choice of whether you want to have your link open in a new window or the same window. If you do not pick one, it will automatically default to the same window.  If you want to code it yourself the html code looks like this:

<a href=”http://www.YourLink.com”/target=”_blank”>YourText</a>

Leave a Comment

*

Previous post:

Next post: