This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

target

Summary

Target is a link attribute, which defines where to open the link.

Applies to [/html/elements/a](/html/elements/a)
**Target** is a link attribute that defines in what window a link will open.

Examples

A target value of “_blank” will cause the page to open in a new window.



<a href="#" target="_blank">Link Text</a>

A target value of “_self” will cause the page to open in the same window or frame.



<a href="#" target="_self">Link Text</a>

A target value of “_parent” will cause the page to open in parent frame of the element.



<a href="#" target="_parent">Link Text</a>

A target value of “_top” will cause the page to open in the top-most frame.



<a href="#" target="_top">Link Text</a>

Notes

Remarks

The window name is an optional argument in the open scripting method. If there is no existing window or frame with the same name as specified in the target, a new window is opened with a name equal to the value of the target.

Syntax

See also

Related pages

  • aa
  • area
  • base
  • form
  • link

Attributions