in my last post i had a script, which deactivate your account, when you put in the rigth code.
Now i have a question:
My script is activate, when you put in the wrong code and then it abort the request
and it is activated, when the user out in the rigth code, and there is an alert : "do you want to delet your account."
But i dont know how i make two butten (ok and reset) i can only one withe he funktion yes or no. can you help me
Here the code:
<script type="text/javascript">
function validateCode(form){
if (form.code1.value != form.code2.value){
alert("%user%! The Code is wrong. Please try again.");
return false;
}
if (form.code1.value = form.code2.value){
alert("%user%! Do you want really to delet your account?");
return true;<-- Here is the button which says jes-->
return false;<--but this bottun don't work-->
}
return true
}
</script>