DOM Objects
DOM Anchor
DOM Applet
DOM Area
DOM Base
DOM Basefont
DOM Body
DOM Button
DOM Checkbox
DOM Document
DOM Event
DOM FileUpload
DOM Form
DOM Frame
DOM Frameset
DOM Hidden
DOM History
DOM Iframe
DOM Image
DOM Link
DOM Location
DOM Meta
DOM Navigator
DOM Option
DOM Password
DOM Radio
DOM Reset
DOM Screen
DOM Select
DOM Style
DOM Submit
DOM Table
DOM TableData
DOM TableHeader
DOM TableRow
DOM Text
DOM Textarea
DOM Window

Navigator Object

The Navigator object contains information about the client browser.

Note: The Navigator object is not a W3C standard.

The Navigator object's collections, properties and methods are described below:

N: Netscape (including Mozilla when N6 or higher), IE: Internet Explorer, MO: Mac only, W3C: World Wide Web Consortium (Internet Standard)

Collections

Collection Description N IE W3C
plugins[] Returns a reference to all embed objects in the document 3 4 (MO) No

Properties

Syntax: object.property_name

Property Description N IE W3C
appCodeName Returns the code name of the browser 2 3.02 No
appMinorVersion Returns the minor version of the browser   4 No
appName Returns the name of the browser 2 3.02 No
appVersion Returns the platform and version of the browser 2 3.02 No
browserLanguage Returns the current browser language   4 No
cookieEnabled Returns a Boolean value that specifies whether cookies are enabled in the browser 6 4 No
cpuClass Returns the CPU class of the browser's system   4 No
onLine Returns a Boolean value that specifies whether the system is in offline mode (In IE 4+ the user can choose to work offline by selecting File/Work Offline in the browser. When Work Offline is selected, the system enters an offline state, and content is read from the cache)   4 No
platform Returns the operating system platform 4 4 No
systemLanguage Returns the default language used by the OS   4 No
userAgent Returns the value of the user-agent header sent by the client to the server 2 3.02 No
userLanguage Returns the OS' natural language setting   4 No

Methods

Syntax: object.method_name()

Method Description N IE W3C
javaEnabled() A Boolean value that specifies whether the browser has Java enabled 3 4 (MO) No
taintEnabled() A Boolean value that specifies whether the browser has data tainting enabled 3 4 No