-1
How to be directed to a next page after being confirmed the "email" and "password" in Javascript
<button onclick="b_login()" id="botaoLogin">LOGIN</button>
<script>
function b_login(){
var email = login_email.value;
var senha = login_senha.value;
var email_passou = (email == '[email protected]')
var senha_passou = (senha == '1234');
if(email_passou && senha_passou){
alert('Aguarde');
}
else{
if(!email_passou){
alert("Email invalido");
}
if(!senha_passou){
alert("Senha invalida");
}
}
}
</script>