Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function password() {
- var p1=document.getElementById("password1").value;
- var p2=document.getElementById("password2").value;
- if(p1!=p2){
- alert("Your passwords did not match, please try again");
- return false;
- }
- else{ alert("The password has been set");
- return true;}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement