新浪微博 登陆  注册   设为首页 加入收藏

问题 2014-03-20 06:08:29     点击:7344

[其他] JavaScript 问题
<%@ page language="java" contentType="text/html; charset=GB2312"
pageEncoding="GB2312"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>Insert title here</title>
</head>
<script language="javascript">
function CheckInformation()
{
legal=true;
if(document.from1.username.value=="")
{
alert("请输入用户名!");
legal=false;
}
else
{
pass=document.from1.pwd1.value;
cfpass=document.from1.pwd2.value;
if(pass.length<6)
{
alert("密码至少为六位!");
legal=false;
}
else
{
if(pass!=cfpass)
alert("两次输入密码不相同!");
legal=false;
}
}

}
</script>
<body>
<table width="512" height="225" border="1">
<tr>
<td width="403"><form name="form1" method="post" action="">
<p>用 户 名:
<input type="text" name="username" id="username">
</p>
<p>用户密码:
<input type="text" name="pwd1">
</p>
<p>确认密码:
<input type="text" name="pwd2">
</p>
<p>邮箱地址:
<input type="text" name="mailadd">
</p>
<p>联系电话:
<input type="text" name="phone">
</p>
<p>
<input type="submit" name="button" value="提交" onClick="CheckInformation()">
</p>
</form></td>
</tr>
</table>
</body>
</html>







推荐答案   2014-03-20 06:08:29

你好,你学习真认真 这个我不会








1楼 Rumor说: 2016-09-09 14:46:23
Dear RAJENDRA,We want to inform you that, we have received your request for surnredering the policy was on dated 20/11/2012 and same is in under process you will receive surrender amount within 7 to 8 days.We request you to kindly give us some time to resolve the same and do the needful to you.Thanks and Regards,Help and Support Team



  发表评论
昵称:
(不超过20个字符或10个汉字)

内容: