Javascript Reference
Categories: navigator

javascript navigator systemLanguage

@Aug. 28, 2008, 4:13 p.m.
systemLanguage Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

 

Read-only  

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


Powered by Linode.