Location.target (Property)

The target window or frame that a location belongs to when its object represents an <A> tag.

Availability:

JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Property/method value type:String primitive
JavaScript syntax:-myLocation.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:

See also:Anchor.target, BASE.target, Form.target, Url.target