Your Search Results

    Navigator.product

    Summary

    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.

    Syntax

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

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

    Specification

    DOM Level 0. Not part of any standard.

    Document Tags and Contributors

    Contributors to this page: teoli
    Last updated by: teoli,