lang
This property specifies the base language of an element's attribute values and text content.
Syntax
language = element.lang element.lang = languageParameters
language is a string that represents the language in which the text of the current element is written.
Example
// this snippet checks that the base language blah blah if ( document.lang != "en" ) { document.location = "other_lang_top.html"; }
Notes
The language code returned by this property is defined in RFC 1766. Common examples include "en" for English, "ja" for Japanese, "sp" for Spanish, and so on. The default value of this attribute is unknown. Note that this property, though valid at the individual element level described here, is most often used for the BODY or for the document itself.
Specification
lang
Netscape Communications http://developer.netscape.com |