The product property returns the product name and in most of the browsers, the code name is a gecko.
<html> <body> <p id="proname"></p> <script> document.getElementById("proname").innerHTML = "the product name is " + navigator.product; </script> </body> </html>
the product name is Gecko
The code property returns the code name of the browser. This code name is basically "Mozilla" for Chrome, Firefox, IE, Safari, and Opera.
<html> <body> <p id="coname"></p> <script> document.getElementById("coname").innerHTML = "the code name name is " + navigator.appCodeName; </script> </body> </html>
the code name name is Mozilla