login page
INPUT
<html>
<head>
<title>first</title>
<script>
function subtract()
{ //alert("1n");
n1=frm1.txtno1.value;
//alert(no2);
n2=frm1.txtno2.value;
//ans=n1-n2;
//alert("the answer is "+ ans);
if(n1==n2)
confirm("login sucessful");
else
confirm("usernam and password are not correct");
}
</script>
<style>
table
{
width:300px;
background-color:#323ca8;
padding:20px;O
border:10px solid pink;
}
</style>
</head>
<body>
<form name=frm1>
<table border=1>
<tr>
<td> username:</td>
<td><input type=text name=txtno1></td>
</tr>
<tr>
<td>password:</td>
<td><input type=password name=txtno2></br></td>
</tr>
<tr>
<td></td>
<td><input type=button value="login" onclick="subtract()"></td>
</tr>
</table>
</form>
</body>
Comments