Ad Code

Responsive Advertisement

Java Script for password match

 Java Script for password match  


<html>
<head>
<script language=Javascript>
function check()
{
pw1=document.f1.p1.value
pw2=document.f1.p2.value
if(document.f1.p1.value=="")
{
document.write("Plese enter your password")
}
else if(document.f1.p2.value=="")
{
document.write("Plese enter your retype password")
}
else if(pw1!=pw2)
{
document.write("sorry !!! Password not match..............try again!!!")
}
}
</script>
</head>
<body bgcolor=green>
<form name=f1>
Password<input type=password  name=p1>Retype password<input type=password  name=p2>
<input type=submit name=submit value="submit now" onClick="check()">
</body>
</html>

Post a Comment

0 Comments