Format Phone Number | JavaScriptSource

Format Phone Number

Roman Feldblum Jan 30, 2002
This script will format a telephone number entered into a text box. Numbers can be entered as 1234567890 and will automatically be formatted as (123)456-7890.
Enter Telephone Number
(To refresh, hold down shift and press the browser refresh button)

The JavaScript Source: Forms: Format Phone Number

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!

    

Did you use this script?  Do you like this site?  Please link to us!

Leave a Response

(
2 comments)

Nedd format

vali Jan 25, 2014

Hi, thanks for the script but how would I format it like so?:[br /][br /](1234) 123-1234

Bri Jan 14, 2009