---
title: "登录界面 通过JSValidation 验证"
author: "windy_star"
date: "2011-03-16T13:56:20Z"
tags: []
categories: ["编程语言"]
slug: "jsvalidation"
draft: false
lastmod: "2011-03-16T13:56:20Z"
id: 964089
url: "https://windy-star.iteye.com/blog/964089"
---

```
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<title>JavaScript Validation Framework</title>

</head>

<body>
<script language="JavaScript" src="validation-framework.js"></script>



<form method="POST" action="/webproject2/servlet/login" id="form1" onsubmit="return doValidate(this)">
  用户名：<input type="text" name="username" size="20"><br>
  密&nbsp;&nbsp; 码：<input type="password" name="password" size="20"><br><br>    
 <input type="submit" value=" 登 录 ">&nbsp; <input type="reset" value=" 取 消 ">    
</form>


</body>

</html>
```