- 关 键 词:
- javascript
1// 检查 E-mail 是否已被注册
2 function CheckExists()
3 {
4 var e = document.getElementById("mailaddress").value;
5 if(e != "") {
6 if(!/(\S)+[@]{1}(\S)+[.]{1}(\w)+/.test(e))
7 {
8 alert("请输入格式正确的 e-mail 地址!");
9 var email = document.getElementById ( "mailaddress" );
10 email.value = "";
11 email.focus ();
12 }
13 else
14 {
15 QuickRegisterBox.IsEMailExists(e, CheckExists_Callback);
16 }
17 }
18 }保留地址 http://www.qqread.com/javascript/d344260.html进入讨论组讨论。
2 function CheckExists()
3 {
4 var e = document.getElementById("mailaddress").value;
5 if(e != "") {
6 if(!/(\S)+[@]{1}(\S)+[.]{1}(\w)+/.test(e))
7 {
8 alert("请输入格式正确的 e-mail 地址!");
9 var email = document.getElementById ( "mailaddress" );
10 email.value = "";
11 email.focus ();
12 }
13 else
14 {
15 QuickRegisterBox.IsEMailExists(e, CheckExists_Callback);
16 }
17 }
18 }保留地址 http://www.qqread.com/javascript/d344260.html进入讨论组讨论。
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
相关专题
- Javascript风格要素 Ⅰ (0次浏览)
- Javascript风格要素 Ⅱ (0次浏览)



