NavigatorID.product

Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The NavigatorID.product property returns the product name of the current browser.

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

Syntax

productName = window.navigator.product 

Value

A DOMString.

Example

<script>
function prod() { 
  dt = document.getElementById('d'); 
  dt.innerHTML = window.navigator.product; 
}
</script> 
<button onclick="prod();">product</button> 
<div id="d"> </div> 
<!-- returns "Gecko" -->

Notes

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).

Specifications

Specification Status Comment
WHATWG HTML Living Standard
The definition of 'NavigatorID.product' in that specification.
Living Standard Initial definition

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)
on Web Workers ? ? 28 (28) ? ? ?
Feature Android Chrome for Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)
on Web Workers ? ? ? 28.0 (28) ? ? ?

See also

Document Tags and Contributors

 Last updated by: nmve,