<html>
<head>
<title>test</title>
<script language=
function emailCheck () {
var emailStr=document
alert(emailStr);
var emailPat=/^(
var matchArray=emailStr
if (matchArray==null) {
alert(
return false;
}
return true;
}
</script>
</head>
<body>
<form name=
<input type=
<input type=
</form>
</span>
</body>
</html>
From:http://tw.wingwit.com/Article/program/Java/Javascript/201311/25465.html