<html>
<head>
<script type="text/javascript">
function fvalidate()
{
var username=document.getElementById("txtusername").value;
var password=document.getElementById("txtpassword").value;
if(username=="anil"&&password=="anil")
{
alert("Welcome anil !!!!");
}
else
{
alert("Invalid Username & Password");
}
}
</script>
</head>
<body>
<form>
Enter User Name<input type="text"id="txtusername"><br>
Enter Password<input type="password"id="txtpassword"><br>
<input type="submit"id="btnsubmit"value="SignIn"onClick="fvalidate()">
</form>
</body>
</html>
0 comments:
Post a Comment