JavaScript » Navigator » platform

Syntax:
navigator.platform

This property contains a string indicating the machine type for which the browser was compiled. e.g., 'Win32' is a 32 bit Windows machine.