title: How do I check Windows Phone useragent with javascript?
body: <p>I can check for iPhone with this code:</p>
  
  <pre><code>(navigator.userAgent.match(/iPhone/i))
  </code></pre>
  
  <p>But I want to target Windows Phone with this userAgent:</p>
  
  <pre><code>Mozilla/4.0(compatible; MSIE 6.0; Windows NT 5.1; 
  Motorola_ES405B_19103; Windows Phone 6.5.3.5)
  </code></pre>
  
  <p>Is there any way to do this? </p>