Open In App

HTML DOM Navigator product Property

Last Updated : 14 Jun, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

The Navigator product property is used for returning the browser’s engine(product) name. It is a read-only property and generally returns “gecko” for most of the browsers. It returns a string representing the engine name of the browser.

Syntax:  

navigator.product

Return Value: A String, representing the engine name of the browser

Below program illustrates the Navigator product Property :

Checking whether the browser’s engine name. 

HTML




                          
<!DOCTYPE html>
<html>
  
<head>
    <title>
      Navigator product Property in HTML
    </title>
    <style>
        h1 {
            color: green;
        }
          
        h2 {
            font-family: Impact;
        }
          
        body {
            text-align: center;
        }
    </style>
</head>
  
<body>
  
    <h1>GeeksforGeeks</h1>
    <h2>Navigator product Property</h2>
  
      
  
<p>
      For checking the browser's engine name,
      double click the "Check Engine Name " button: </p>
  
  
  
    <button ondblclick="checkengine()">
      Check Engine Name
    </button>
  
    <p id="name"></p>
  
  
  
    <script>
        function checkengine() {
            var e = 
                "Browser's Engine Name: " + navigator.product;
            document.getElementById("name").innerHTML = e;
        }
    </script>
  
</body>
  
</html>


Output:  

After clicking the button  

Supported Browsers: The browsers supported by Navigator product property are listed below: 

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

 



Similar Reads

HTML DOM Navigator appCodeName Property
The Navigator appCodeName Property is used for returning the code name of the browser. It is a read-only property and generally, all modern browsers return "Mozilla". Syntax: navigator.appCodeName Return values: Returns a string that represents the code name of the browser. Below program illustrates the Navigator appCodeName Property: 1. Getting th
1 min read
HTML DOM Navigator appName Property
Navigator appName Property: It is used for returning the name of the browser.It is a read-only property and the values returned by it varies from browsers to browsers.it returns a string which represents the name of the browser.It returns "Netscape" for IE11, Firefox, Chrome, and Safari whereas, for IE 10 and earlier versions, it returns "Microsoft
1 min read
HTML DOM Navigator appVersion Property
The Navigator appVersion Property is a read-only property and it returns a string which represents the version information of the browser. It is used for returning the information related to the version of the browser. Syntax: navigator.appVersion Note: This property has been deprecated and is no longer used. Below program illustrates the Navigator
1 min read
HTML DOM Navigator cookieEnabled Property
The cookieEnabled property is used to return a Boolean value which specifies whether the browser has cookies enabled or not. It returns true if cookies are enabled else it returns false. Syntax: navigator.cookieEnabled Below program illustrates the Navigator cookieEnabled Property: Checking whether the browser has cookies enabled or not. C/C++ Code
1 min read
HTML DOM Navigator geolocation Property
The Navigator geolocation property is used to return a geolocation object by the browser which can be used to locate a user's position. It is a read-only property and is only available on the approval of the user since it can compromise the user's privacy. Syntax: navigator.geolocation Below program illustrates the Navigator geolocation Property :C
1 min read
HTML DOM Navigator onLine Property
The Navigator onLine property is used for returning a Boolean value which specifies whether a browser is in the online or offline mode. It is a read-only property which returns true if the browser is in online mode or false if it is in the offline mode. Syntax: navigator.onLineReturn Value: A Boolean, indicating whether the browser is in online or
2 min read
HTML DOM Navigator platform Property
The Navigator platform property is used for returning the platform for which the browser is compiled. It returns a string representing the platform of the browser. The possible values are: MacIntelMacPPCMac68KWin32Win16SunOSHP-UXLinux i686etc Syntax navigator.platform Below program illustrates the Navigator platform Property :Checking the browser's
1 min read
HTML DOM Navigator userAgent Property
The Navigator userAgent property is used for returning the user-agent header's value sent to the server by the browser. It returns a string representing values such as the name, version, and platform of the browser. Syntax: navigator.userAgentReturn Value: A String, representing the user agent string for the current browser Below program illustrate
1 min read
HTML DOM Navigator language Property
The Navigator language property is used for returning the browser's language version. It is a read-only property and it returns a string representing the language version of the browser. Some of the possible language codes are : en-USfrende Syntax: navigator.language Below program illustrates the Navigator language Property : Checking the browser's
1 min read
HTML DOM Window navigator Property
The HTML DOM Window navigator property is used to return a Navigator object. The navigator object contains information about the browser. This Navigator object contains methods and properties of the application which is run the script. Syntax: var nav = window.navigator; Return Value: A Navigator Object. Example: This example shows how to get the N
1 min read