Skip to content

Instantly share code, notes, and snippets.

@aarongough
Created April 13, 2010 23:17
Show Gist options
  • Save aarongough/365227 to your computer and use it in GitHub Desktop.
Save aarongough/365227 to your computer and use it in GitHub Desktop.
var viewportHeight = self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
// ^ FF, Safari, Opera ^ IE6 Strict ^ All other explorers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment