Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/01/2008, 12:47
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Re: Meter Variables Javascripts en HTML

Hola rogoelpra

Puedes hacer algo así:

Código:
<div id="main" style="overflow:auto">
<script type="text/javascript">
  document.getElementById('main').style.width = anchoventana+'px';
  document.getElementById('main').style.height = altoventana+'px';
</script>
Aunque creo que lo más sencillo sería utilizar Css:

Código:
body,html {height:100%}
#main {width:100%; height:100%}
Saludos,