Url.rel (Property)

The relationship of this element to the document pointed at by the URL.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape version - 6.0
Property/method value type:String primitive
JavaScript syntax:-myUrl.rel
HTML syntax:<LINK 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:LINK.rel