Visit Mozilla.org

DOM:window.navigator.oscpu

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Returns a string that identifies the current operating system.

[edit] Syntax

oscpuInfo = window.navigator.oscpu 
  • oscpu is a string that takes the following form.

[edit] Example

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

[edit] Specification

DOM Level 0. Not part of any standard.