See also: fsEmail |
Function used to determines whether or not the value in the field is a valid e-mail address. If the field does not contain an e-mail address, then an alert is displayed and focus is returned to the field.
JSV_fvEmail(expO [, emptyOK])
n/a
The fvEmail 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="EmailFieldForm">
<B>Email:</B>
<INPUT TYPE="Text" NAME="EmailField" SIZE="80" MAXLENGTH="255"
onBlur="JSV_fvEmail(this,true);">
<INPUT TYPE="Button" NAME="EmailCheck" VALUE="Check">
</FORM>
produce
Enter an invalid e-mail address and tab to, or click, the Check button.
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.