navigator.product

書式

navigator.product

説明

製品名(レンダリングエンジン名)を返します。Firefox、Safari 2、iCabで利用することができます。Firefox 1.5, Safari 2, iCab 3ではいずれもGeckoの文字列を返します。

サンプルコード [実行]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<script type="text/javascript"><!--
window.onload = function() {
var txt = navigator.product;
document.getElementById("result").innerHTML = txt;
}
// --></script>
</head>
<body>
<div id="result"></div>
</body>
</html>