Anchor.target (Property)

In MSIE the Url.target property is also available as the Anchor.target property.

Availability:

DOM level - 1
JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Property/method value type:String primitive
JavaScript syntax:-myAnchor.target
-myAnchor.target = newTarget
HTML syntax:<A TARGET="...">

This yields the value of the TARGET attribute in an <A>, <AREA> or <MAP> tag.

You can assign a new value to this property so that the URL will be directed to a different window or frame.

Here are some example target values:

Warnings:

See also:<MAP TARGET="...">, Anchor object, Anchor.hash, Anchor.host, Anchor.hostname, Anchor.href, Anchor.pathname, Anchor.port, Anchor.protocol, Anchor.search, BASE.target, Form.target, Location.target, Map.target, URL, Url.target