Monday, May 20, 2024
55
rated 0 times [  62] [ 7]  / answers: 1 / hits: 15689  / 13 Years ago, tue, may 3, 2011, 12:00:00

How can you get the window.innerHeight in internet explorer. Thanks.


More From » internet-explorer

 Answers
91
window.getWinSize= function(){
if(window.innerWidth!= undefined){
return [window.innerWidth, window.innerHeight];
}
else{
var B= document.body,
D= document.documentElement;
return [Math.max(D.clientWidth, B.clientWidth),
Math.max(D.clientHeight, B.clientHeight)];
}
}

[#92443] Saturday, April 30, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jaydenathaliam

Total Points: 676
Total Questions: 102
Total Answers: 103

Location: San Marino
Member since Thu, Jun 30, 2022
2 Years ago
;