日期:2014-05-16 浏览次数:20348 次
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Login.html</title> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!--<link rel="stylesheet" type="text/css" href="./styles.css">--> </head> <body> <script language="javascript"> function validate(myform)( if(myform.userName.value.length==0){ alert("请填写用户名!"); myform.userName.focus(); return false; } if(myform.userPassword.value.length==0){ alert("请填写密码!"); myform.userPassword.focus(); return false; } ) </script> <form method="post" action="/lesson4/servlet/login" name="login" onsubmit="return validate(this)"> 用户名:<input type="text" name="userName"> 密 码 :<input type="password" name="userPassword"> <input type="submit" name="提交" value="提交"><input type="reset" name="重置" value="重置"> </form> </body> </html>