title: how to identify if user agent is windows 8 tablet?
body: <p>I have a web application. I my JavaScript, I am identifying devices by user agent string as follows:</p>
  
  <pre><code>_android = navigator.userAgent.toLowerCase().indexOf("android");
  
  _iOS = navigator.platform.indexOf("iPhone");
  </code></pre>
  
  <p>My task is to identify if device is win8 tablet or not?</p>
  
  <p>I have already seen <a href="https://stackoverflow.com/questions/13076839/what-is-the-user-agent-string-for-surface-rt">this post</a>. But, the string "Windows NT" is likely to appear in useragent on all the PC browsers. So, I need to find out a client side way of identifying if device is win8 tablet?</p>
  
  <p>Any thoughts?</p>