JS Navigator Object
CSGNetwork FREE Source Code, Javascript Source, and Code Snippets!
CSGNetwork Custom Search
     Bookmark and Share
 
CSGNetwork
Snippets
Calculators
Top Free Apps
Home
Back



Right click this window and select "view source" in order to copy the source for this script.

Navigator Object

The Navigator object of JavaScript returns useful information about the visitor's browser and system.

Properties

Properties Description
appCodeName The code name of the browser.
appName The name of the browser (ie: Microsoft Internet Explorer).
appVersion Version information for the browser (ie: 4.75 [en] (Win98; U)).
cookieEnabled Boolean that indicates whether the browser has cookies enabled. IE4 and NS6+.
language Returns the default language of the browser version (ie: en-US). NS4 and NS6+ only.
mimeTypes[] An array of all MIME types supported by the client. NS4 and NS6+ only. Array is always empty in IE.
platform[] The platform of the client's computer (ie: Win32).
plugins An array of all plug-ins currently installed on the client. NS4 and NS6+ only. Array is always empty in IE.
systemLanguage IE4+ property that returns the default language of the operating system. Similar to NS's language property.
userAgent String passed by browser as user-agent header. (ie: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1))
userLanguage IE4+ property that returns the preferred language setting of the user. Similar to NS's language property.

Your browser's Navigator Information

Using some of the above properties, lets display some information about your browser, live:

Additional browsers' Navigator Information

Below shows you what the Navigator object would return for some of the popular browsers/Operating System combinations out there:

Internet Explorer 6.0 (Windows XP)

AppCodeName: Mozilla
AppName: Microsoft Internet Explorer
AppVersion: 4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Platform: Win32

Internet Explorer 5.5 (Windows XP)

AppCodeName: Mozilla
AppName: Microsoft Internet Explorer
AppVersion: 4.0 (compatible; MSIE 5.5; Windows NT 5.1; .NET CLR 1.1.4322)
UserAgent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.1; .NET CLR 1.1.4322)
Platform: Win32

Internet Explorer 5.23 (Mac Panther 10.3.7)

AppCodeName: Mozilla
AppName: Microsoft Internet Explorer
AppVersion: 4.0 (compatible; MSIE 5.0; Macintosh; I; PPC)
UserAgent: Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
Platform: MacPPC

Firefox 1.0 (Preview Release) (Windows XP)

AppCodeName: Mozilla
AppName: Netscape
AppVersion: 5.0 (Windows; )
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10
Platform: Win32

Firefox 1.04 (Windows XP)

AppCodeName: Mozilla
AppName: Netscape
AppVersion: 5.0 (Windows; en-US)
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Platform: Win32

Firefox 1.0 (Mac Panther 10.3.7)

AppCodeName: Mozilla
AppName: Netscape
AppVersion: 5.0 (Macintosh; en-US)
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 StumbleUpon/1.999
Platform: MacPPC

Firefox 1.0 (Linux)

AppCodeName: Mozilla
AppName: Netscape
AppVersion: 5.0 (X11; en-US)
UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0
Platform: Linux i686

Opera 7.5 (Identify as MSIE 6.0) (Windows XP)

AppCodeName: Mozilla
AppName: Microsoft Internet Explorer
AppVersion: 4.0 (compatible; MSIE 6.0; Windows NT 5.1)
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.50 [en]
Platform: Win32

Opera 7.5 (Identify as Opera) (Windows XP)

AppCodeName: Mozilla
AppName: Opera
AppVersion: 7.50 (Windows NT 5.1; U)
UserAgent: Opera/7.50 (Windows NT 5.1; U) [en]
Platform: Win32

Opera 7.54 (Identify as MSIE 6.0) (Linux)

AppCodeName: Mozilla
AppName: Microsoft Internet Explorer
AppVersion: 4.0 (compatible; MSIE 6.0; X11; Linux i686)
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686) Opera 7.54 [en]
Platform: Linux

Netscape 7.1 (Windows XP)

AppCodeName: Mozilla
AppName: Netscape
AppVersion: 5.0 (Windows; en-US)
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
Platform: Win32

Safari 1.2.4 (Mac Panther 10.3.7)

AppCodeName: Mozilla
AppName: Netscape
AppVersion: 5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.5.5 (KHTML, like Gecko) Safari/125.12
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.5.5 (KHTML, like Gecko) Safari/125.12
Platform: MacPPC

Mozilla 1.7 (Mac Panther 10.3.7)

AppCodeName: Mozilla
AppName: Netscape
AppVersion: 5.0 (Macintosh; en-US)
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7) Gecko/20040616
Platform: MacPPC

AOL 10.3 (Mac Panther 10.3.7)

AppCodeName: Mozilla
AppName: Netscape
AppVersion: 5.0 (Macintosh; en-US)
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.2) Gecko/20020924 AOL/7.0
Platform: MacPPC

Konqueror 3.3.1

AppCodeName: Mozilla
AppName: Konqueror
AppVersion: 5.0 (compatible; Konqueror/3.3; Linux 2.4.27; X11) (KHTML, like Gecko)
UserAgent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux 2.4.27; X11) (KHTML, like Gecko)
Platform: Linux i686 X11

Konqueror 3.2.2 (Linux)

AppCodeName: Mozilla
AppName: Konqueror
AppVersion: 5.0 (compatible; Konqueror/3.2; Linux 2.4.26; X11) (KHTML, like Gecko)
UserAgent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux 2.4.26; X11) (KHTML, like Gecko)
Platform: Linux i686 X11

Methods

Note: "[]" surrounding a parameter below means the parameter is optional.

Methods Description
javaEnabled() Tests whether Java is enabled. Returns Boolean.
plugins.refresh([reload]) Makes newly installed plug-ins available and optionally reloads open documents that contain plug-ins if "reload" argument is present and set to true.

JS Navigator Object



View Source...

The Navigator object detects and contains information about the viewer's browser. The Navigator object contains general or specific information about the viewer's browser name, version, and more. There is no public standard that applies to the navigator object, but most all major and modern browsers support it.



Bookmark and Share
Registered® Trademark™ and CopyrightŠ 1973 - CSG, Computer Support Group, Inc. and CSGNetwork.Com All Rights Reserved