<script> function IsNumber(source,arguments) { var ValidChars = "0123456789."; var Char; var sText=document.getElementById("TextBox1").value; for (i = 0; i < sText.length; i++) { Char = sText.charAt(i); if (ValidChars.indexOf(Char) == -1) { arguments.IsValid = false; return; } } return; } </script>
本文地址:http://com.8s8s.com/it/it8330.htm