<html>
<head>
<title>網頁特效|www
wangqi
com|
只能輸入漢字</title>
<meta http
equiv="Content
Type" content="text/html; charset=gb
">
</head>
<body>
<input onkeyup="value=value
replace(/[^u
E
u
FA
]/g
)" onbeforepaste="clipboardData
setData(
text
clipboardData
getData(
text
)
replace(/[^u
E
u
FA
]/g
))">
</body>
</html>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20360.html