window.navigator.product Redirect 1


This property returns the product name of the current browser.

Note: Do not rely on this property to return a real product name. Both Gecko and WebKit browsers return "Gecko" as the value of this property.


productName = window.navigator.product 
  • productName is a string.


function prod() { 
  dt = document.getElementById("d"); 
  dt.innerHTML = window.navigator.product; 

<button onclick="prod();">product</button> 
<div id="d"> </div> 
<!-- returns "Gecko" -->


In Gecko-based browsers the product matches the portion of the full user agent string that comes directly after the platform. In the user agent for Netscape 6.1, for example, the product is "Gecko" and the full agent string is the following: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010725 Netscape6/6.1.

In WebKit-based browsers the product is returned as "Gecko" even though the portion of the full user agent string directly after the platform is actually the following: (KHTML, like Gecko).


DOM Level 0. Not part of any standard.

Document Tags and Contributors

 Last updated by: Sheppy,