日期:2014-05-16 浏览次数:20352 次
<HTML> <HEAD> <TITLE> </TITLE> <script language=javascript> function checkChinese(){ var re=/[\u4E00-\u9FA0]+/; if (re.test(form1.aa.value)) { alert( "是中文 "); return false; } alert( "不是中文 "); return true; } </script> </HEAD> <BODY> <FORM METHOD="POST" name=form1 > <INPUT TYPE= "text " NAME= "aa "> <br> <input type="submit" value="Submit" onsubmit="checkChinese()"> </FORM> </BODY> </HTML>