title: Mobile redirect using screen resolution
body: <p>I advertise a company, basicaly I'm an affiliate. I want to redirect my mobile viewers to the mobile version of my affiliate website. I'm thinking of doing this with screen resolution. Basicaly, if the screen resolution is unde 800 x 600, chances are big the guest is using a mobile phone.</p>
  
  <p>Is this a good ideea?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>if ( (screen.width &lt; 800) &amp;&amp; (screen.height &lt; 600) ) { 
      window.location = 'mobilesite';
      } 
  </code></pre>
  
  <p>Ty!</p>