Web/API/navigator/productSub

From Get docs


The Navigator.productSub read-only property 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.

Specifications

Specification Status Comment
HTML Living StandardThe definition of 'NavigatorID: productSub' in that specification. Living Standard Initial definition

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet

productSub

Deprecated'

Chrome Full support 1

Notes'

Full support 1

Notes'

Notes' Always returns 20030107.

Edge Full support 12

Notes'

Full support 12

Notes'

Notes' Always returns 20030107.

Firefox

Full support 1

IE

No support No

Opera Full support 15

Notes'

Full support 15

Notes'

Notes' Always returns 20030107.

Safari Full support 1

Notes'

Full support 1

Notes'

Notes' Always returns 20030107.

WebView Android Full support 1

Notes'

Full support 1

Notes'

Notes' Always returns 20030107.

Chrome Android Full support 18

Notes'

Full support 18

Notes'

Notes' Always returns 20030107.

Firefox Android

Full support 4

Opera Android Full support 14

Notes'

Full support 14

Notes'

Notes' Always returns 20030107.

Safari iOS Full support 1

Notes'

Full support 1

Notes'

Notes' Always returns 20030107.

Samsung Internet Android Full support 1.0

Notes'

Full support 1.0

Notes'

Notes' Always returns 20030107.

Legend

Full support  
Full support
No support  
No support
Deprecated. Not for use in new websites.'
Deprecated. Not for use in new websites.
See implementation notes.'
See implementation notes.