Name
Navigator
Synopsis
navigator
Properties
appCodeNameA read-only string that specifies a nickname for the browser. In all Netscape browsers, this is “Mozilla”. For compatibility, this property is “Mozilla” in Microsoft browsers as well.
appNameA read-only string property that specifies the name of the browser. For Netscape, the value of this property is “Netscape”. In IE, the value of this property is “Microsoft Internet Explorer”.
appVersionA read-only string that specifies version and platform information for the browser. The first part of this string is a version number. Pass the string to
parseInt( )to obtain the major version number only or toparseFloat( )to obtain the major and minor version numbers as a floating-point value. The remainder of the string value of this property provides other details about the browser version, including the operating system it is running on. Unfortunately, however, the format of this information varies widely from browser to browser.cookieEnabledA read-only boolean that is
trueif the browser has cookies enabled, andfalseif they are disabled. IE 4, Netscape 6.languageA read-only string that specifies the default language of the browser version. The value of this property is a standard two-letter language code such as “en” for English or “fr” for French. It can also be a five-letter string indicating a language and a regional variant, such as “fr_CA” for French, as spoken in Canada. Netscape 4; note that IE 4 provides two different language-related ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access