action
发布时间:2023-03-30 06:29:20 来源:文档文库
小
中
大
字号:
<%@pagelanguage="java"contentType="text/html;charset=GBK"pageEncoding="GBK"%>
DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head>
<metahttp-equiv="Content-Type"content="text/html;charset=GBK"><title>用户登录页面title>
<scripttype="text/javascript">functioncheckLogin({varuserName=document.getElementById("userName".value;varpassword=document.getElementById("password".value;//alert("用户名为>:"+userName+"密码为>:"+password;if(!userName{}
if(!password{}
document.forms[0].submit(;}script>head><body><br><br><br><br><center>
<formaction="./login"id="loginForm"name="loginForm"method="get"><tablewidth="50%"border="1"cellpadding="0"cellspacing="1"><trbgcolor="#efe284">
alert("密码不能为空!";document.getElementById("password".focus(;alert("用户名不能为空!";document.getElementById("userName".focus(;returnfalse;returnfalse;<tdcolspan="2"><h2>用户登录页面h2>td>tr>
<tr>
<tdalign="right"bgcolor="#efe284">登录名:td>