Get cpu Class : navigator : Javascript Objects JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Javascript Objects » navigator »

 

Get cpu Class



    
<html>
<head>
<script language="JavaScript">
function function1() {
    var m = navigator.cpuClass;
    if (m == "x86") {
        n = "Intel processor";
    else if (m == "68K") {
        n = "Motorola processor";
    else if (m == "Alpha") {
        n = "Digital processor"
    else if (m == "PPC") {
        n = "Motorola processor";
    else {
        n = "Unknown processor";
    }
    alert("The CPU of this machine is "+'"'+m+'"n'+n)

</script>
<body>
<input type="button" value="Click here" onClick="function1();">
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Javascript Objects
» navigator