Return to Snippet

Revision: 3147
at June 14, 2007 04:48 by joseluis


Updated Code
alert('maximo height='+screen.availHeight+'\nmaximo width='+screen.availWidth+'\nOuter height='+window.outerHeight+'\nOuter Width='+window.outerWidth+'\ninner height='+window.innerHeight+'\ninner Width='+window.innerWidth+'\nResolucion de pantalla height='+screen.height+'\nResolucion de pantalla width='+screen.width);

if (window.innerHeight){
	//navegadores basados en mozilla
	var heightVentana = window.innerHeight;
}else{
	//navegadores basados en IExplorer 
	var heightVentana = document.documentElement.clientHeight;						
}

Revision: 3146
at June 8, 2007 03:53 by joseluis


Initial Code
alert('maximo height='+screen.availHeight+'\nmaximo width='+screen.availWidth+'\nOuter height='+window.outerHeight+'\nOuter Width='+window.outerWidth+'\ninner height='+window.innerHeight+'\ninner Width='+window.innerWidth+'\nResolucion de pantalla height='+screen.height+'\nResolucion de pantalla width='+screen.width);

Initial URL

                                

Initial Description

                                

Initial Title
calcular dimensiones pantalla, navegador, document....

Initial Tags
javascript

Initial Language
JavaScript