...

View Full Version : find window dimensions



alaios
10-12-2006, 09:56 PM
Hi i want to know how i can find the dimensions of a window. I want to know his curent width and height

mrhoo
10-13-2006, 02:36 AM
function winSize(){
var A=[0,0];
if(window.innerWidth){
A= [window.innerWidth, window.innerHeight];
}
else {
var D=document.documentElement;
if(D && D.clientHeight) A= [D.clientWidth, D.clientHeight];
}
return A;
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum