| 
     
   
     
<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> 
 
     
       
         
     
   
    
    |