Anchor.rel (Property)

A definition of the relationship between the current document and the document at the location specified by the URL.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myAnchor.rel

This is sometimes called a forward link. Although the HREF HTML tag attribute is normally the only means used to identify a target document, the browser is permitted to use the REL HTML tag attribute to decide whether to use the HREF value or how it should be used.

The following HTML version 4.0 standard link types are permitted in this property:

MSIE adds these as well:

When used or tested within a script, any comparisons should be case insensitive.

See also:Anchor.rev, LINK.rel