Re-type Password Validation

Advertisements

Prev Tutorial Next Tutorial

Re-type Password Validation

Example

<html>
<head>
<script>
function pass_validation()
{
var firstpassword=document.f1.password1.value;  
var secondpassword=document.f1.password2.value;  

if(firstpassword==secondpassword){  
return true;  
}  
else{  
alert("password one and two must be same!");  
return false;  
}  
} 
</script>
</head>

<body>
<form name="f1" action="/JavaScript/Index" onsubmit="return pass_validation()">  
Password:<input type="password" name="password1" /><br/>  
Re-enter Password:<input type="password" name="password2"/><br/>  
<input type="submit">  
</form> 
</body>
</html>

Result

Password:
Re-enter Password:

Prev Tutorial Next Tutorial

Advertisements

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements