See also: fsFormatPhone |
Function used to format a phone number according to a specific format.
JSV_fvFormatPhone(expO [, expM])
n/a
The fvFormatPhone function formats the phone number in a field in accordance with the designated format.
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. |
n/a
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
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.