1. Judgment with JavaScript [isnan ()]
JS code:
Function Check (FormName) {
IF (isnaMe.price.value) {
Alert ('Please enter the number');
Formname.price.focus ();
Return False;
}
Alert ('is a number, through');
Return True;
script>
transfer:
form>
2. Judgment with VBScript [IsNuMeric ()]
Similar to the above, use the isNumeric () function
Sub isnum (param)
IF not isnumeric (param) THEN
MSGBOX ("Please enter a number")
END IF
End Sub