language property (clientInformation, navigator)
Returns the language of the browser application.
There are other properties that contain information about the user's language settings:
- The language property returns the language of the browser application in Opera and older versions of Internet Explorer, or the language of the operating system's user interface from Internet Explorer 5.
- The systemLanguage property returns the language edition of the operating system in Internet Explorer
- The userLanguage property returns the current Regional and Language settings of the operating system in Internet Explorer and the language of the browser application in Opera.
You can find the related objects in the Supported by objects section below.
This property is read-only.
String that represents the language.
Default: this property has no default value.
Example HTML code 1:
This example displays various language settings:
Did you find this example helpful?
User Contributed Comments