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.
<script type="text/javascript>
function checkSubmit()
{
var myObj = document.myFormName;
phoneCount = 0;
if (myObj.homePhone.value != "") phoneCount++;
if (myObj.workPhone.value != "") phoneCount++;
if (myObj.mobilePhone.value != "") phoneCount++;
if (phoneCount == 0)
{
alert('Please supply a phone number for us to contact you.');
return false;
}
}
</script>
<form name="myFormName" method="post" action="somefile.cgi" onsubmit="return(checkSubmit())">
<input type="text" value="" name="homePhone" /><br />
<input type="text" value="" name="workPhone" /><br />
<input type="text" value="" name="mobilePhone" /><br />
<input type="submit" value="Send form" name="submitButton" />
</form>