代码示例:(标识:eg_js_navigator_product)
<!DOCTYPE html>
<html>
<body>

<h1>Navigator 对象</h1>

<p>product 属性返回浏览器的产品名称。</p>

<p>不要依赖它!大多数浏览器都将 “Gecko” 作为产品名称返回!</p>

<p id="demo"></p>

<script>
document.getElementById("demo").innerHTML =
"navigator.product 是:" + navigator.product;
</script>

</body>
</html>
运行结果: