Learn HTML Code Tutorial Reference Guide

Attribute for <A ...>
TARGET = "_blank" | "_parent" | "_self" | "_top" | window name

TARGET controls where the new document will be displayed when the user follows a link. Most of the time, clicking on a link simply loads a new document in the same window where the link was. However, with TARGET, you can have the new document open in a new window, or if you are using frames, in another frame.

You can target a frame by a name you have assigned it. (See our frames page for how to use and name frames.) TARGET also has four predefined values, which can be used as if certain windows and frames already have names without you having to assign them:

  • "_blank"
  • "_parent"
  • "_self"
  • "_top"

Note that each of predefined names starts with an underscore ("_"). They also must be in all lower-case letters.

You can also use TARGET with MSIE's <IFRAME ...> and the NAME attribute.




 

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   Privacy Policy   |   About
Copyright ©1997-2002 Idocs and ©2002-2014 HTML Code Tutorial