html文件代码如下:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"
html
head
meta http-equiv="Content-Type" content="text/html; charset=utf-8"
titleJS控制非法字符的输入/title
/head
body
form
p这里不允许输入如下字符:(像!@#$%^&*等)br
textarea rows="2" cols="20" name="comments" onkeypress="checkComments()"/textarea
/p
p这里不允许输入引号:br
input type="text" name="txtEmail" onkeypress="checkEmail()"/
/p
p这里只能输入数字:br
input type="text" name="tx...
[ 查看全文 ]