See also: fsFormatPhone

Function used to format a phone number according to a specific format.

Syntax

JSV_fvFormatPhone(expO [, expM])

Prototype

n/a

Returns

The fvFormatPhone function formats the phone number in a field in accordance with the designated format.

Parameters

The fvFormatPhone function uses the following arguments.

Argument Description
expO The object.
expM Optional. Mask used to format the phone number where 'X' represents a single digit. Default format is (XXX) XXX-XXXX.

Remarks

n/a

Dependencies

JSV_fsFormatPhone

Example

The following lines of code

<FORM NAME="TestForm">

Phone: <INPUT TYPE="Text" NAME="PhoneNo" VALUE="6072341234" SIZE="16" MAXLENGTH="32" onBlur="JSV_fvFormatPhone(this);"> <INPUT TYPE="Button" NAME="FmtFone" VALUE="Submit"> <INPUT TYPE="Reset"> </FORM>

produce

Phone: