Javascript Reference
Categories: navigator

javascript navigator cpuClass

@June 10, 2008, 2:37 p.m.
cpuClass Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

 

Read-only  

Returns a string reference of the CPU of the client computer. Common Intel microprocessors (including Pentium-class CPUs and Macintoshes running Windows emulators) return x86, while PowerPC Macintoshes return PPC. This value tells you only about the basic hardware class, not the operating system or specific CPU speed or model number.

 
Example
 
if (navigator.cpuClass == "PPC") {
  // statements specific to PowerPC clients
}
 
Value

String.

 
Default

Depends on client hardware.


Powered by Linode.