title: Detecting mobile devices
body: <p>I have a Javascript code where I detect if my site is viewed from a mobile device. Below is my code:</p>
  
  <pre><code>(function() {
      if (navigator.userAgent.match(/Android/i)
              || navigator.userAgent.match(/webOS/i)
              || navigator.userAgent.match(/iPhone/i)
              || navigator.userAgent.match(/iPad/i)
              || navigator.userAgent.match(/iPod/i)
              || navigator.userAgent.match(/BlackBerry/i)
              || navigator.userAgent.match(/Windows Phone/i)
              || navigator.userAgent.match(/Opera Mini/i)
              || navigator.userAgent.match(/IEMobile/i)
              ) {
          isMobile = true;
      }
  })();
  </code></pre>
  
  <p>Does this code cover all the possible cases or is there are chance that some devices can bypass this check? </p>