FANDOM


Stub

This article is a stub. Please help the wiki by coding it. Spamming and vandalism is not considered an improvement and will result in discipline, up to, and including a permanent block.

The HTML target attribute specifies where to open the target URL. It is usually used only if the href attribute is present.

HTML elements such as <a> use the target attribute.

The values for this attribute is a browsing context name, like:


  • _self contains an element or script.
  • _parent contains the element (such as object, iframe, or frame) in which _self is embedded, or _self if it is not embedded.
  • _top is not embedded within any other and contains, directly or indirectly, an element or script. This may be equal to either _self or _parent, or an ancestor of both.
  • _blank does not yet exist, but will be created if a script or element operated by the user sends a URL to it. (A name which is not yet assigned to a browsing context has a similar effect, except the resulting context has a name by which it may be referred to later.)
Community content is available under CC-BY-SA unless otherwise noted.