Improve Site Performance Increase Site Traffic Monitor Site Uptime Webmaster Resources NetMechanic Home Looking For Help? Partner Programs Privacy Policy Contact Us Press Room
NetMechanic Home LOGIN | HELP | ABOUT US | PRODUCTS | SITE MAP
NetMechanic Menu
Over 52 Million Web Pages Tested!     
 
Learn about links.
Search for:


Your Email:

I would like to receive my newsletter in:
HTML format
Text format


target attribute.
Volume 8 (2005)
   September
   June
   April
   March
   January

Volume 7 (2004)
   November
   September
   July
   June
   May
   April
   March
   February (Part 2)
   February
   January (Part 2)
   January

Volume 6 (2003)
   December
   November (Part 2)
   November
   September
   August (Part 2)
   August
   July (Part 2)
   July
   June (Part 2)
   June
   May (Part 2)
   May
   April (Part 2)
   April
   March (Part 2)
   March
   February (Part 2)
   February
   January (Part 2)
   January

Volume 5 (2002)
   December (Part 2)
   December
   November (Part 2)
   November
   October (Part 2)
   October
   September (Part 2)
   September
   August (Part 2)
   August
   July (Part 2)
   July
   June (Part2)
   June
   May (Part 2)
   May
   April (Part 2)
   April
   March (Part 2)
   March
   February (Part 2)
   February
   January (Part 2)
   January

Volume 4 (2001)
   December (Part 2)
   December
   November (Part 2)
   November
   October (Part 2)
   October
   September (Part 2)
   September
   August (Part 2)
   August
   July (Part 2)
   July
   June (Part 2)
   June
   May (Part 2)
   May
   April (Part 2)
   April
   March (Part 2)
   March
   February (Part 2)
   February
   January (Part 2)
   January

Volume 3 (2000)
   December (Part 2)
   December
   November (Part 2)
   November
   October (Part 2)
   October
   September (Part 2)
   September
   August (Part 2)
   August
   July (Part 2)
   July
   June
   May
   April
   March
   February
   January

Volume 2 (1999)
   December
   November
   October
   September
   July
   June
   May
   April
   March
   February
   January

Volume 1 (1998)
   December
   November
   October
   September

 

Beginner Tip:
Hit The Right Target With Your Links

by Larisa Thomason,
Senior Web Analyst,
NetMechanic, Inc.

     
  
February 2001
(Part 2)
Vol. 4, No. 4
 • Promotion Tip
 • Design Tip
 • Beginner Tip
  

Hyperlinks to related Web sites add value to your site. Visitors enjoy the easy access to related information while trading links with other webmasters increases your link popularity score. But remember: when visitors click on those hyperlinks, they're leaving your Web site. Use the TARGET attribute inside your <A> tags to keep your site in view.

Direct Visitors With The TARGET Attribute

Visitors who click on the following code go to the Internet.com Web site - and away from yours. If they visit a lot of pages on that site or follow some of that site's external links, they may never find their way back to you.

Look at this code:

<a href="http://www.internet.com">Internet.com</a> Web site.

You can make sure that your site stays available simply by including the TARGET attribute inside the <A> tag like this:

Visit the
<a href="http://www.internet.com" target="_blank">Internet.com</a> Web site.

Target="_blank" opens a new browser window that displays the Internet.com site. Your site still resides in the original browser window. Since the original window remains open, your visitors can easily go back to your page without clicking their browser's Back button numerous times.

Open Links In A Single Browser Window

But what if you have dozens of external links on your page? If each link opens a new browser window, your visitors will quickly have their desktop cluttered with them. They'll either be confused or annoyed - probably both.

Avoid confusion by giving the targeted window a specific name: win2. Target each external link on the page to win2 and your visitors will only have to deal with two browser windows: one for your site and one for your external links.

The code is almost exactly the same as above:

Visit the
<a href="http://www.internet.com" target="win2">Internet.com</a> Web site.

Get current news at
<a href="http://www.cnn.com" target="win2">CNN's</a>
Web site.

But the effect is different. Click on one of the links here.

Visit the Internet.com Web site.

Get current news at CNN's Web site.

A new browser window will open and display that Web page. Then, without closing the new window, click on the other link. See how it replaces the first site in the same window?

Of course, we used the name "win2" as an example. You can call it anything you want as long as you're consistent on the page.

Explain Yourself First

Remember that some visitors get annoyed when a link on your site unexpectedly opens a new browser window. They feel like your Web site is taking control of their computer. It's good manners to warn your visitors what will happen.

  • Image Links: Include it inside the ALT attribute:

    <a href="http://www.netmechanic.com/" target="win2"><IMG 
    
      SRC="/images/HTMLCode.jpg" ALT="Get HTML Code help at NetMechanic 
    
        - opens a new browser window."></a>
  • Text Links: Include a link title for your text links. This only works with IE 4.0 and up and Netscape 6.

    HTML Code help at <a href="http://www.netmechanic.com/" target="win2" 
    
      title="Visit NetMechanic's Web site. Opens a new browser 
    
        window">NetMechanic</a>.
  • Links Page: If you have a specific "Related Links" page on your site, just include a note at the top of the page that all links will open in a separate browser window.

As a side benefit, these techniques make your Web site more accessible to disabled visitors who rely on text-only or spoken word browsers.

Need more HTML code help? NetMechanic's HTML Toolbox will scan your code for errors and alert you to browser compatibility problems.



Rate This Tip:
Not Useful Useful Very Useful   
 
NetMechanic Tools
HTML Toolbox
Browser Photo
Server Check
Search Engine Starter
Search Engine Tools
GIFBot
Newsletter
HTML Tutorial and Tips
Search Engine Tutorial
Accessibility Information
Browser Problem Tutorial

Company Info
Products
About Us
Contact
Advertise
Link To Us
Jobs
Privacy Policy
Partner Programs
Press Room
RSS Feed
Support
 



Powered by Overture!

 
     
 
   
 
     


Keynote Home
Copyright © 1996-2007,
Keynote NetMechanic
All rights reserved.