Name
cpuClass — NN n/a IE 4 DOM n/a
Synopsis
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 value.
Default
Depends on client hardware.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.