Thursday, April 4, 2013

Javascript Functions & Properties on Navigator Object


The Navigator object is actually a JavaScript object, not an HTML DOM object.

Navigator Object Properties
appCodeName Returns the code name of the browser
appMinorVersion Returns the minor version of the browser
appName Returns the name of the browser
appVersion Returns the platform and version of the browser
browserLanguage Returns the current browser language
cookieEnabled Returns a Boolean value that specifies whether cookies are enabled in the browser
cpuClass Returns the CPU class of the browser's system
onLine Returns a Boolean value that specifies whether the system is in offline mode
Platform Returns the operating system platform
systemLanguage Returns the default language used by the OS
userAgent Returns the value of the user-agent header sent by the client to the serve
userLanguage Returns the OS' natural language setting

Navigator Object Methods
javaEnabled() Specifies whether or not the browser has Java enabled
taintEnabled() Specifies whether or not the browser has data tainting enabled

No comments:

Post a Comment