title: Detect Physical dimension of Monitor
body: <p>I want to get the display dimensions of my monitor.</p>
  
  <p>Is it possible to do with JavaScript or Flash?</p>
  
  <p>I tried the following function:</p>
  
  <pre><code>var dpi_x = document.getElementById('testdiv').offsetWidth;
          var dpi_y = document.getElementById('testdiv').offsetHeight;
          var width_in = screen.width / dpi_x;
          var height_in = screen.height / dpi_y;
          var diagonal_in = Math.round(10 * Math.sqrt(width_in * width_in + height_in * height_in)) / 10;
  </code></pre>
  
  <p>but it doesn't show the fixed diagonal value... because when I change the resolution of the display...</p>
  
  <p>Where as I want the fixed dimension like 16.5"... I mean, it should be fixed for any specific monitor..</p>