I want to password protect my website.
I have found this code from another developer but want it to redirect to index3.html
when the password entered is correct.
Can someone please show me if this is possible using this code?
$("#b").click(function() {
var password = "password";
if($("#pass").val() !== password) {
$("#err").text("Incorrect password");
}
else {
$("#err").text("Password correct! Do whatever you need to do here.");
}
});