title: Prevent change original orientation in phonegap
body: <p>I'm new in phonegap and I'm looking for a safe and easy way to detect if the device is a tablet or a phone.
  My approach is this. If the width size is more than height size then the device is a tablet, otherwise is a phone. The problem with this approach is that if the phone start in horizontal position the result is wrong. </p>
  
  <p>I need something, a property or a method in phonegap to get for the original size of the device regardless if it is horizontal or vertical position.</p>
  
  <p>I'm using this: </p>
  
  <p>window.innerHeight;
  window.innerWidth;</p>
  
  <p>or </p>
  
  <p>window.height;
  window.width;</p>
  
  <p>But if I change the orientation then the property (height or width)change. I need the original size of the screen regardless if it is horizontal or vertical position.</p>
  
  <p>Can anyone help me please?</p>
  
  <p>Thanks in advance.</p>