/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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; }