Easy Tutorial
❮ Jsref Undefined Jsref Tolowercase ❯

Area target Attribute


Definition and Usage

The target attribute sets or returns the value of the target attribute in an area.

Syntax

The target attribute can have 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 frame set that contains the hyperlink
_top Loads the document into the window that contains the hyperlink, replacing any currently displayed frames
framename Loads the document into the same named frame

Browser Support

All major browsers support the target attribute.


Example

The following example returns the target attribute of the "Venus" area in an image map:

The output of the above example is:

❮ Jsref Undefined Jsref Tolowercase ❯