title: Javascript Navigator OSCPU Undefined
body: <p>The navigator's oscpu attribute is throwing undefined on XP IE7 and WIN7 IE9 machines. Other attributes such as <code>platform</code> etc work fine.</p>
  
  <pre><code> alert(navigator.oscpu);
  </code></pre>
  
  <p>I want to know how Javascript can identify the version of windows (Windows Xp, 7 or 8)</p>
  
  <p>Can someone help?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Got the answer</p>
  
  <p><code>navigator.appVersion</code> return something like this...</p>
  
  <p>4.0 (compatible; MSIE 7.0; MSBrowserIE7; <strong>Windows NT 5.1</strong>; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8; .NET4.0C; .NET4.0E; dmx:m; mty:p; slx:mi.by.as; ssx:NonCitrix)</p>
  
  <p>So in this </p>
  
  <p><strong>Windows NT 5.1</strong> means <strong>Windows XP</strong>. 
  If it was <strong>Windows NT 6.1</strong> it would mean <strong>Windows 7</strong>
  &amp;  If it was <strong>Windows NT 6.2</strong> it would mean <strong>Windows 8</strong> etc.</p>
  
  <p>Hope this helps...</p>