Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
function addDashes(f)
{
num = f.phoneNum.value;
parts = [num.slice(0,3),num.slice(3,6),num.slice(6,10)];
fNum = parts[0]+"-"+parts[1]+"-"+parts[2];
alert (fNum);
}
</SCRIPT>
</head>
<BODY>
<form>
Phone Number: <input type='text' name='phoneNum'>
<BR><input type='button' onClick='addDashes(this.form)' value='Submit'>
</form>
</body>
</html>
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
function addDashes(f)
{
num = f.value;
parts = [num.slice(0,3),num.slice(3,6),num.slice(6,10)];
fNum = parts[0]+"-"+parts[1]+"-"+parts[2];
f.value = fNum;
}
</SCRIPT>
</head>
<BODY>
<form>
Phone: <input type='text' name='phone' onBlur='addDashes(this)'><BR>
Cell: <input type='text' name='cell' onBlur='addDashes(this)'><BR>
Home: <input type='text' name='home' onBlur='addDashes(this)'><BR>
</form>
</body>
</html>
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
function addDashes(f)
{
f.value = f.value.slice(0,3)+"-"+f.value.slice(3,6)+"-"+f.value.slice(6,10);
}
</SCRIPT>
</head>
<BODY>
<form>
Phone: <input type='text' name='phone' onBlur='addDashes(this)'><BR>
Cell: <input type='text' name='cell' onBlur='addDashes(this)'><BR>
Home: <input type='text' name='home' onBlur='addDashes(this)'><BR>
</form>
</body>
</html>