JavaScript Reference/Javascript Properties/userLanguage

Материал из Web эксперт
Перейти к: навигация, поиск

"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