Navigator.productSub

  • Revision slug: Web/API/Navigator.productSub
  • Revision title: Navigator.productSub
  • Revision id: 488633
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{DomRef}} {{non-standard_header}}

Summary

productSub returns the build number of the current browser.

Syntax

prodSub = window.navigator.productSub
  • prodSub is a string.

Example

<script> 
function prodsub() {
  var dt = document.getElementById("d").childNodes[0];
  dt.data = window.navigator.productSub;
} 
</script>

<button onclick="prodsub();">productSub</button>
// returns: 20010725

Notes

On IE, this property returns undefined.

On Apple Safari and Google Chrome this property always returns 20030107.

Specification

{{dom0}}

Revision Source

<div>
 {{DomRef}} {{non-standard_header}}</div>
<h2 id="Summary" name="Summary">Summary</h2>
<p><b>productSub</b> returns the build number of the current browser.</p>
<h2 id="Syntax" name="Syntax">Syntax</h2>
<pre class="syntaxbox">
<i>prodSub</i> = window.navigator.productSub</pre>
<ul>
 <li><code>prodSub</code> is a string.</li>
</ul>
<h2 id="Example" name="Example">Example</h2>
<pre class="brush:js">
&lt;script&gt; 
function prodsub() {
  var dt = document.getElementById("d").childNodes[0];
  dt.data = window.navigator.productSub;
} 
&lt;/script&gt;

&lt;button onclick="prodsub();"&gt;productSub&lt;/button&gt;
// returns: 20010725</pre>
<h2 id="Notes" name="Notes">Notes</h2>
<p>On IE, this property returns undefined.</p>
<p>On Apple Safari and Google Chrome this property always returns <code>20030107</code>.</p>
<h2 id="Specification" name="Specification">Specification</h2>
<p>{{dom0}}</p>
Revert to this revision