9 login
<html>
<head>
<h1><center><font color="green">LOGIN</font></center></h1>
<script>
function login()
{
var uname=document.f1.t1.value;
var pwd=document.f1.t2.value;
if ((uname=="system")&&(pwd=="system"))
{document.write("redirect to next page");
alert("successful");}
else
alert("invalid username or password");
}
</script>
</head>
<body>
<center>
<form name="f1">
USERNAME: <input type="text" name="t1"><br><br>
PASSWORD: <input type="password" name="t2">
<br><br>
<input type="button" value="submit" onclick="login()">
<input type="reset" value="reset">
</center>
</form>
</body>
</html>
Comments
Post a Comment