Home Frames Target Target Attribute
Search MS Office A-Z   |   Search Web Pages/ Design A-Z

Target Attribute

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.