× Introduction Setup Environment Building blocks Built-in functions Data Types Strings Operators Conditional statements Loop statements Functions Arrays Understaing Objects Date Object Number Object Math Object String Object Window Location Navigator History DOM Basics Forms
   Programs
Basic Control Loops Functions Arrays Examples Projects Quick Ref.
   Exercises
Variables Data Types Operators Decision Loops Reeborg's World



JavaScript Navigator

In this tutorial, you will learn about the JavaScript Navigator object and its properties.

The navigator object contains information about the browser. The navigator object is a property of the window object.

The navigator object is accessed with:.
window.navigator or just navigator:

Example: Try It
 
let origin = window.navigator.language;
or 
let language = navigator.language;

Navigator Object Properties

appCodeName - Returns browser code name
appName - Returns browser name
appVersion - Returns browser version
cookieEnabled - Returns true if browser cookies are enabled
geolocation - Returns a geolocation object for the user's location
language - Returns browser language
onLine - Returns true if the browser is online
platform - Returns browser platform
product - Returns browser engine name
userAgent - Returns browser user-agent header

Navigator Object Methods

javaEnabled() - Returns true if the browser has Java enabled Try It