Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 함께 해서 번역을 마치도록 도와 주세요!

Returns a string that identifies the current operating system.

Syntax

oscpuInfo = window.navigator.oscpu 
  • oscpuInfo is a string that takes the following form:
Operating system oscpuInfo string format
OS/2 OS/2 Warp x (either 3, 4 or 4.5)
Windows CE WindowsCE x.y1
Windows 64-bit (64-bit build) Windows NT x.y; Win64; x64
Windows 64-bit (32-bit build) Windows NT x.y; WOW64
Windows 32-bit Windows NT x.y
Mac OS X (PPC build) PPC Mac OS X x.y
Mac OS X (i386/x64 build) Intel Mac OS X x.y
Linux 64-bit (32-bit build) Output of uname -s plus "i686 on x86_64"
Linux Output of uname -sm

1x.y refers to the version of the operating system

Example

function osInfo() { 
  alert(window.navigator.oscpu); 
}
// returns: "Windows NT 6.0" for example

Notes

Unless your code is privileged (chrome or at least has the UniversalBrowserRead privilege), it may get the value of the general.oscpu.override preference instead of the true platform.

Specifications

Not part of any specifications

문서 태그 및 공헌자

 이 페이지의 공헌자: teoli, MHasan, kscarfone, Sheppy, ziyunfei, Neil, Mgjbot, Potappo, Diablownik, Nickolay, Dria, JesseW
 최종 변경: teoli,