function myfunction(){ var x = document.getElementById("pass");
if(x.type === "password") { x.type = "text"; } else { x.type = "password"; }}
función validar() { var contraseña = document.getElementById("contraseña");
if(password.value.length >= 8 ){ alert("Login Success!"); window.location.replace("home.html") return false; } else{ alert("login Failed!"); }}