TOC PREV NEXT INDEX

domref



window.navigator.language


Returns a string representing the language version of the browser.

Syntax

lang = window.navigator.language
 

Parameters

lang is a two character string (e.g., "en" or "ja") representing the language version.

Example

if ( window.navigator.language != "en" ) {
 
    doLangSelect(window.navigator.language);
 
}
 

Notes

This property also shows up as part of the window.navigator.userAgent string.

Specification

DOM Level 0. Not part of specification.
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX