Navigator

The window.navigator object contains information about the visitor's platform(browser).

Window Navigator

The window.navigator object can be written without the window prefix like this.

mywindow=window()
navigator=window.navigator

Some examples:

  • navigator.appName

  • navigator.appCodeName

  • navigator.platform

Browser Cookies

The cookieEnabled property returns true if cookies are enabled, otherwise false:

Example

print(navigator.cookieEnabled)

Browser Application Name

The appName property returns the application name of the browser:

Example

print(navigator.appName)

Browser Application Code Name

The appCodeName property returns the application code name of the browser:

Example

print(navigator.appCodeName)

The Browser Engine

The product property returns the product name of the browser engine:

Example

print(navigator.product)

The Browser Version

The appVersion property returns version information about the browser:

Example

print(navigator.appVersion)

The Browser Agent

The userAgent property returns the user-agent header sent by the browser to the server:

Example

print(navigator.userAgent)

Warning !!!

The Browser Platform

The platform property returns the browser platform (operating system):

print(navigator.platform)

The Browser Language

The language property returns the browser's language:

print(navigator.language)

Is The Browser Online?

The onLine property returns true if the browser is online:

print(navigator.online)

Is Java Enabled?

The javaEnabled() method returns true if Java is enabled:

print(navigator.javaEnabled())

Last updated

Was this helpful?