Retrieves the operating system’s natural language setting.
This property reflects the setting in the "Your locale (location)" box in the Regional Options of Control Panel—for example, "English (United States).
Property of dom/Navigatordom/Navigator
SyntaxNote: This property is read-only.
var result = navigator.userLanguage;
Return Value
Returns an object of type StringString
see Language Codes for a full listing of possible values.
ExamplesThis example enumerates the properties and methods of your web browsers ‘navigator’ object and displays the results on the screen.
the navigator.userLanguage may or may not be supported by your web browser.
Usage
Do not use as this property reflects the language preferences of the users' Operating system NOT their language preferences for web content.
Notes Remarks
This property reflects the setting in the "Your locale (location)" box in the Regional Options of Control Panel—for example, "English (United States).
Syntaxvar result=navigator.userLanguage;
AttributionsMicrosoft Developer Network: [navigator.userLanguage Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4