See also: fsFloat |
Function used to determine whether or not the value in the field is a float. If the field does not contain an float, then an alert is displayed, and focus is returned to the field.
JSV_fvFloat(expO [, emptyOK])
n/a
The fvFloat function uses the following arguments.
Argument | Description |
expO | The object. |
emptyOK | Optional. Boolean value that indicates whether the field is mandatory (i.e., not empty). Default value is false. |
n/a
The following lines of code
<FORM NAME="FloatingPointForm">
<B>Floating Point Number:</B> <INPUT TYPE="Text" NAME="MyFloat" SIZE="8" MAXLENGTH="8" onBlur="JSV_fvFloat(this,true);">
<INPUT TYPE="Button" NAME="FloatCheck" VALUE="Check">
</FORM>
produce
Enter a floating point number and click the Check button.
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.