navigator.cpuClass

書式

navigator.cpuClass

説明

CPU名を返します。PowerPCの場合はPPC、インテルプロセッサの場合はx86になります。Windows版Internet Explorer 4以降、Macintosh版Internet Explorer 5、iCab 3以降が対応しています。

サンプルコード [実行]

<!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.cpuClass;
document.getElementById("result").innerHTML = txt;
}
// --></script>
</head>
<body>
<div id="result"></div>
</body>
</html>