Navigator Object


Navigator object

The Navigator object contains information about the browser.

NoteNote: There is no published standard that applies to the navigator object, but it is supported by all browsers.


Navigator Object Properties

PropertyDescription
appCodeNameReturns the codename of the browser
appNameReturns the name of the browser
appVersionReturns the browser's platform and version information
cookieEnabledReturns a boolean indicating whether cookies are enabled in the browser
platformReturns the operating system platform on which the browser is running
userAgentReturns the value of the server's user-agent header sent by the client

Navigator Object Methods

MethodDescription
javaEnabled()Specifies whether to enable Java in the browser
taintEnabled()Specifies whether the browser enables data tainting