Element.lang (Property)

The value of the LANG tag attribute of the HTML tag that represents this element.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myElement.lang
-myElement.lang = aNationality
Argument list:aNationalityAn indication of the national language required

This property controls the locale specific text rendering. It allows special characters to be handled appropriately and special character sets to be supported properly according to the national language variants.

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

See also:Element object, LANG="...", Navigator.language, Navigator.systemLanguage, Navigator.userLanguage


RFC 1766