Name

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

Synopsis

Read-only

The written language for which the browser version was created. The language is specified in the ISO 639 language code scheme. Internet Explorer provides this information via the navigator.browserLanguage property.

Example

var mainLang = navigator.language

Value

Case-insensitive language code as a string.

Default

Browser default.

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.