 |
 |
Resources - For Developers
================STEP 1 - COPY CODE BELOW INTO HEADER======================
<script language="JavaScript" src="shared/phoneFilter.js"></script>
================STEP 1 - COPY CODE ABOVE INTO HEADER======================
================STEP 2 - COPY CODE BELOW INTO BODY========================
<form name="myForm">
Phone:
<input name="Phone" type="text" id="Phone"
onBlur="this.form.Phone.value=replace(this.form.Phone.value,'(','');
this.form.Phone.value=replace(this.form.Phone.value,')','');
this.form.Phone.value=replace(this.form.Phone.value,'-','');
this.form.Phone.value=replace(this.form.Phone.value,'.','');
this.form.Phone.value=replace(this.form.Phone.value,'/','');
phoneFilter(this,
'###-###-####')" value="" size="16" maxlength="16">
ext:
<INPUT name="textfield" type="text" size="7" maxlength="7">
</FORM>
=================STEP 2 - COPY CODE ABOVE INTO BODY=======================
=================STEP 3 - SAVE FILE=======================================
Save this file into your shared folder
Ex:
index.html
shared/phoneFilter.js
=================STEP 3 - SAVE FILE======================================
INSTRUCTIONS
- Step 1 - Paste code inside header <HEAD></HEAD> of HTML page
- Step 2 - Paste code inside body <BODY></BODY> of HTML page
- Step 3 - Save phonefilter.js into your shared folder. It's just easier
that way.
DESCRIPTION
- This makes sure a user enters in a phone number correctly, and reformats
the output as needed.
|
|
 |
|
 |
Copyright © 2003-2012. BounceFish Web Design. All rights reserved. |
 |