Posted By

noah on 05/15/07


Tagged

crossbrowser DOM height dimensions robzand


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

ggb2g
vali29
vtowntim
itsmeameer


Height of window


 / Published in: JavaScript
 

Get the height of the browser window in any browser. Rob Zand's code.

  1. var windowHeight = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;

Report this snippet  

You need to login to post a comment.