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
How can you get the window.innerHeight in internet explorer. Thanks.
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)];
}
}