¿De qué forma puedo obtener el viewport o window size con Javascript?
obtener window size - javascript
Iniciado por
Pascual
, may 07 2014 18:29
#1 AUTOR PREGUNTA
Preguntas Similares
Esto también te interesa!
#2
Publicado 07 mayo 2014 - 20:40
te dejo el siguiente ejemplo para que lo puedas realizar:
<script type="text/javascript"> <!-- function viewport() { var e = window , a = 'inner'; if ( !( 'innerWidth' in window ) ) { a = 'cliente'; e = document.documentElement || document.body; } return { width : e[ a+'Width' ] , height : e[ a+'Height' ] } } //--> </script>