Good evening
I would like a help from what a real-time password verification in javascript and html would look like, I think of two text boxes and a message below that would indicate something like "divergent password" until both fields are filled with the same value , one or example would help me a lot!
<html>
<head>
<title>Validade Senha</title>
<script> function validarSenha(){
senha1 = document.f1.senha1.value
senha2 = document.f1.senha2.value
if (senha1 == senha2) alert("SENHAS IGUAIS")
else alert("SENHAS DIFERENTES") }
</script>
</head>
<body> VALIDAR SENHA <br> <br>
<form action="" name="f1">
Senha: <input type="password" name="senha1" size="20"> <br>
Confirmar Senha: <input type="password" name="senha2" size="20"> <br>
<input type="button" value="Validar" onClick="validarSenha()">
</form>
</body>
</html>
Thanks for reading!