JavaScript Reference/Javascript Properties/userLanguage
"userLanguage" Example
<html>
<body>
<button onclick="alert(navigator.userLanguage);">User Language</button>
</body>
</html>
"userLanguage" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |clientInformation navigator |
+----------------+--------------------------------------------------------------+
"userLanguage" Syntax and Note
Note:
Read-only property.
Returns the system"s language.
Syntax:
objectName.userLanguage