Name

navigator — NN 2 IE 3 DOM n/a

Synopsis

The navigator object in many ways represents the browser application. As such, the browser is outside the scope of the document object model. Even so, the navigator object plays an important role in scripting, because it allows scripts to see what browser and browser version is running the script. In addition to several key properties that both Navigator and Internet Explorer have in common, each browser also extends the property listing of this object in ways that would generally benefit all browsers.

Object Model Reference

NN

navigator

IE

navigator

Properties

appCodeName

browserLanguage

onLine

userAgent

 

appMinorVersion

cookieEnabled

platform

userLanguage

 

appName

cpuClass

systemLanguage

userProfile

 

appVersion

language

   

Methods

javaEnabled( )

preference( )

taintEnabled( )

Collections/Arrays

mimeTypes[]

plugins[]

 

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.