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.

Syntax

JSV_fvEmail(expO [, emptyOK])

Prototype

n/a

Returns

The fvEmail does not return a value.

Parameters

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.

Remarks

n/a

Dependencies

JSV_fsEmail

Example

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.

Email: