RE: Retype Password Validation using JavaScript?

Retype Password Validation

arjun Team Leader Asked on June 18, 2017 in JAVASCRIPT.
Add Comment
1 Answers
<form name="f1" method="post" action="result.php" onsubmit="return passwordvalidate()" >

Password: <input type="password" name="pass"><br/>

Retype Password: <input type="password" name="repass"><br/>

<input type="submit" value="Register">

<script type="text/javascript">

function passwordvalidate(){

var pass=document.f1.pass.value;

var repass=document.f1.repass.value;

return true;



alert("Password and Retype Password must be same!");

return false;



Team Leader Answered on June 21, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.