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.

Syntax

JSV_fvFloat(expO [, emptyOK])

Prototype

n/a

Returns

The fvFloat does not return a value.

Parameters

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.

Remarks

n/a

Dependencies

JSV_fsFloat

Example

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.

Floating Point Number: