how to get the height and width of the browser viewport without scrollbars using jquery?
<p>how to get the height and width of the browser viewport without scrollbars using jquery?</p>

<p>Here what I tried so far:</p>

<pre><code>       var viewportWidth = $("body").innerWidth();
       var viewportHeight = $("body").innerHeight();
</code></pre>

<p>THis solution does not take account for the browser scrollbars.</p>
