javascript关于onblur和validata
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>onblur</title>
<script language="javascript">
function check(){
var _email = validata('email');
var _address = validate('address');
alert("*************" + _email);
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="" onsubmit="check();">
<label>e--mail
<input type="text" name="email" onblur="return validata('email')" />
</label>
<label>address
<input type="text" name="address" onblur="return validata('address')" />
</label>
<label>
<input type="submit" name="button" value="提交"/>
</label>
</form>
</body>
</html>
为什么点击“提交”时不执行onsubmit
最好在火狐下兼容