JavaScript Programmer’s Reference return “ie”; } return “other”; (Web site traffic)
JavaScript Programmer’s Reference return “ie”; } return “other”; } alert(getBrowserType()); See also: server.agent Property attributes: ReadOnly. Navigator.userLanguage (Property) An MSIE specific language property. JScript 3.0 String primitive Availability: Internet Explorer 4.0 Property/method value type: JavaScript syntax: IE navigator.userLanguage This property describes the user-selected language code. It uses the same language values as the navigator.language property. Refer to the Language codes topic for a list of the available codes. Warnings: . Note that some platforms will yield a language and country code while others may only yield a language code. See also: Element.lang, ISO 3166, Language codes, Navigator.language, Navigator.systemLanguage Property attributes: ReadOnly. 1512