 <p>You can get browser dimensions with javascript using <code>window.innerHeight</code>.</p> <pre><code>var h=window.innerHeight; </code></pre> <p>You can use the <code>innerWidth</code> for width too. There is a table with browser compatibility at <a href="http://www.w3schools.com/jsref/prop_win_innerheight.asp" rel="nofollow noreferrer">w3schools</a>.</p>