two years back i developed this way of finding out window sizes, as i am fond of elastic pages.
function windowwide() {return this.window.innerWidth ? this.window.innerWidth : !document.documentElement ? document.body.clientWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth;}
function windowhigh() {return this.window.innerHeight ? this.window.innerHeight : !document.documentElement ? document.body.clientHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;}
i now am busy re-evaluating this,i wanted it to OK in ie4-6 and ns4-7 for windows and mac os. of course there is more out there and i now like to know it does what it should
plz know english in not my native language.
thanks in advance .