A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/Navigator/userLanguage below:

userLanguage · WebPlatform Docs

userLanguage Summary

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

Syntax

Note: 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.

Examples

This 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.


View live example

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).

Syntax

var result=navigator.userLanguage;

Attributions

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