window.innerHeight ie8 alternative

internet-explorer-8, javascript, jquery

Solution

You might want to try:

document.documentElement.clientHeight;

Or can use jQuery's `.height()` method:

$(window).height();

Problem

I have some calculations that rely on `window.innerHeight`. But as I have found out this is not available in any IE before IE9. All the other options I have looked at don't even come close to the figure I get when I use `window.innerHeight`. Does anybody have a work around?

Original source

Related problems