Area target Property
Area Object
Definition and Usage
The target property can set or return the value of the target attribute in a region.
Syntax
areaObject.target=
value
The target attribute can be the following values:
| Value | Description |
|---|---|
| _blank | Loads the document in a new, unnamed window. |
| _self | Loads the target document in the same frame or window. |
| _parent | Loads the document into the parent window or the frameset containing the frame that holds the hyperlink reference. |
| _top | Loads the document into the window containing the hyperlink, replacing any frames currently displayed in the window. |
| framename | Loads the document in a frame with the same name. |
Browser support





All major browsers support the target property.
Example
Example
The following example returns the target attribute of the "Venus" region in the image map:
Value of the "Venus" region's target attribute:
The example above produces the following output:
Value of the "Venus" region's target attribute: _blank
Try it »
Area Object