Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

I volontari di MDN non hanno ancora tradotto questo articolo in Italiano. Registrati per tradurlo tu.

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. Do not use it in old or new projects. Pages or Web apps using it may break 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 Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) (Yes) (Yes) (Yes)
on Web Workers ? 28 (28) ? ? ?
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)
on Web Workers ? ? 28.0 (28) ? ? ?

See also

Tag del documento e collaboratori

 Hanno collaborato alla realizzazione di questa pagina: teoli, chrisdavidmills, kscarfone, ethertank, Sheppy, Marcoos, Mgjbot, Diablownik, Blueray, Dria, JesseW
 Ultima modifica di: teoli,