neilson
06-21-2006, 04:05 PM
I have this small javascript that checks to see if the two passwords match. Instead of an alert displaying if the passwords do not match, Id like it to display it on the screen. Anyone know how to modify it?
function CheckPasswords(form) {
Password = form.Password.value;
ConfirmPassword = form.ConfirmPassword.value;
if (Password != ConfirmPassword) {
alert ("New Password and Confirm Password do not Match.")
return false;
}
else return true;
}
function CheckPasswords(form) {
Password = form.Password.value;
ConfirmPassword = form.ConfirmPassword.value;
if (Password != ConfirmPassword) {
alert ("New Password and Confirm Password do not Match.")
return false;
}
else return true;
}