<HTML>
<HEAD>
<script>
function verifyAddress(email) {
var pattern = /^([a-zA-Z]{1})+([a-zA-Z0-9])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/
var flag = pattern.test(email)
if (flag) {
document.getElementById("tongbu").innerText = ("Your email address is correct!")
return true
} else {
document.getElementById("tongbu").innerText = ("Please try again!")
return false
}
}
</script>
</HEAD>
<BODY>
<center><input type="text" id="shuru" value="asd@163.com" onkeyup="verifyAddress(this.value)"></center>
<p id="tongbu" align="center"><p>
</BODY>
</HTML>