este es el input:
<input type="text" id="password" onfocus = "inputOnFocus(this,' Clave');" onBlur="inputOnBlur(this,' Clave');" value=" Clave" />
eventos javascript
:
Código:
function inputOnFocus(id,texto)
{
if(id.value == " Clave")
id.type = "password"; //linea con problemas en IE
if(id.value == texto)
id.value = "";
return true;
}
function inputOnBlur(id,texto)
{
if(id.value.length == 0)
id.type = "text"; //linea con problemas en IE
if(id.value.length == 0)
id.value = texto;
return true;
}
Funciona en Firefox pero no en IE alguien sabe como hacerlo funcionar en IE???
Sorry!.. aquí encontré algo de ayuda:
http://www.forosdelweb.com/f13/efecto-asteriscos-campo-contrasena-473277/