Anchor.hreflang (Property)

The language code of the document at the location specified by the URL.


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

This property should contain values that use the international language two-letter abbreviation codes. These are not the same as the country codes, which are also two letter values.

Refer to the Language codes topic for a list of the available language codes.

See also:Language codes, LINK.hreflang