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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Navigator.productSub by Mozilla Contributors is licensed under CC-BY-SA 2.5.