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.





About the Author
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.