Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/04/2007, 13:26
Capi666
 
Fecha de Ingreso: febrero-2007
Ubicación: Valencia
Mensajes: 457
Antigüedad: 18 años
Puntos: 0
Cambiar el style de un input

Hola a todos, estoy intentando cambiar el font-size del style de un input pero no me deja, no me hace ni caso:
Código:
var passw;
function limpiarpass(caja) {
    passw=document.createElement("input");
    passw.setAttribute("type","password");
    passw.setAttribute("name",caja.name);
    passw.setAttribute("value","");
    passw.setAttribute("size",caja.size);
    passw.setAttribute("style","font-size:11px");
    document.logpass.getElementsByTagName('li')[1].replaceChild(passw,caja);	
    setTimeout("passw.focus();",100);
}
Es una función que se le llama cuando obtiene el focus un input.
Me funciona todo excepto el style del font-size... No se porque, a ver si me podeis ayudar.

Gracias,