<SCRIPT LANGUAGE=
function numericCheck(){
nr
flg=
str=
spc=
arw=
for (var i=
cmp=
tst=nr
if (cmp
flg++;
str+=
spc+=tst;
arw+=
}
else{arw+=
}
if (flg!=
if (spc
str+=
}
alert(
+flg+
return false;
}
}
</SCRIPT>
如下代碼加入HTML的<body>區
<form name=
<INPUT TYPE=
<INPUT TYPE=
</form>
注意
From:http://tw.wingwit.com/Article/program/Java/Javascript/201311/8551.html