JavaScript Window Navigator


The window.navigator object holds details about the visitor's web browser.


Window Navigator

You can write the window.navigator object without saying "window" before it.

Some examples:

  • navigator.cookieEnabled
  • navigator.appCodeName
  • navigator.platform

Browser Cookies

The property called cookieEnabled tells us whether cookies are turned on or off. If it's true, then cookies are enabled, but if it's false, then they're not:


Browser Application Name

The appName property tells you the name of the browser's application.

Warning

This feature is no longer supported in the newest web rules.

Most internet browsers like IE11, Chrome, Firefox, and Safari show "Netscape" as the application name.


Browser Application Code Name

The appCodeName shows what the browser's code name is.


The Browser Engine

The product feature gives you the name of the browser engine.


The Browser Version

The appVersion tells us which version of the browser we're using.


The Browser Agent

The code userAgent shows the info the browser sends to the server.


Warning

The data from the navigator object might not always give the right picture.

The navigator object shouldn't be used to figure out what browser version you have because:

  • Various web browsers are able to employ identical identifiers.
  • The information the browser uses can be altered by the person who owns the browser.
  • Some web browsers pretend to be different to get around website checks.
  • Web browsers can't tell you about operating systems that come out after the browser was made.

The Browser Platform

The platform feature gives the type of operating system used by the browser.


The Browser Language

The language object tells us what language the browser is using.


Is The Browser Online?

The onLine object tells us if the browser is connected to the internet or not.


Is Java Enabled?

The javaEnabled() function tells us if Java is turned on.