title: How to programmatically find the device-width in Phonegap/JQuery mobile
body: <p>I need to find the device-width of the mobile device.
  Although we can specify the content</p>
  
  <pre><code>&lt;meta name="viewport" content="width=device-width; user-scalable=no" /&gt;
  </code></pre>
  
  <p>But i need to programmatically obtain the device width to compute some logic in my application. How can I get the device width?</p>