Ho fatto un po' di prove...
con NN esiste window.outerWidth e window.outerHeight
per IE non sono riuscito a trovare nulla di analogo e allora ho fatto così
codice:
<HTML>
<HEAD>
<script language="javascript">
function dimensioniPagina(){
if(document.getElementById){
width = document.body.clientWidth
height = document.body.clientHeight
}
if(document.layers){
width = window.innerWidth
height = window.innerHeight
}
alert(width+'x'+height)
}
var latBr,topBr,downBr
function CalcolaBrowser(){
if(!window.outerWidth){
avW = window.screen.availWidth
avH = window.screen.availHeight
axOld = window.screenLeft;
ayOld = window.screenTop;
awOld = window.document.body.offsetWidth;
ahOld = window.document.body.offsetHeight;
window.resizeTo(avW,avH)
window.moveTo(0,0)
ax = window.screenLeft;
ay = window.screenTop;
aw = window.document.body.offsetWidth;
ah = window.document.body.offsetHeight;
topBr = ay
downBr = avH-ay-ah
widthPlusBr = (avW-aw)
latBr = Math.round(widthPlusBr/2)
window.resizeTo(awOld+widthPlusBr,ahOld+topBr+downBr)
window.moveTo(axOld-latBr,ayOld-topBr)
}
}
function dimensioniFinestra(){
if(!window.outerWidth){
aw = window.document.body.offsetWidth;
ah = window.document.body.offsetHeight;
alert((aw+latBr+latBr)+' x '+(ah+topBr+downBr))
}
else alert(window.outerWidth+' x '+window.outerHeight)
}
</script>
</HEAD>
<BODY onload="self.resizeTo(800,600);CalcolaBrowser()">
dimensioni pagina
dimensioni finestra
</BODY>
</HTML>
</HTML>
facce sape'