Name

systemLanguage — NN n/a IE 4 DOM n/a

Synopsis

Read-only

The code for the default written language used by the operating system. If you have multi-lingual content available, you can use this property to insert content in specific languages.

Example

if (navigator.systemLanguage == "nl") {
    
                     document.write( ) some Dutch content
}

Value

Case-insensitive language code.

Default

Usually the browser default (en for English-language Internet Explorer available in the United States).

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.