Code for Click to Call
What makes a mobile site special? The ability to code a link so it allows mobile web visitors to click a link that dials a phone number. They’re already on a mobile phone, so why make them take out a piece of paper?
Here is the click to call code:
<a href=”tel:0000000000″>0000000000</a>
Replace the zero’s with the number you would like to call. Do not put any other characters in the quotation marks or a + in it for country code, just the numbers. You can add punctuation inside the anchor text if you like, such as parentheses and dashes or periods. If your mobile web visitor is on an iPhone, you might not even need to code it, but it helps to add it for users of other web enabled phones.
If you are coding a page of emergency phone numbers in the United States, it might be best NOT to enclose 911 in this code to avoid accidentally dialing them or making a “pocket call” where the phone dials a number if it’s accidentally activated. Police investigate 911 calls where no one answers to ensure nobody is hurt or unconscious, although I don’t know how that would work with a mobile phone with location based GPS service enabled.
To see click to call in action, visit Leucadia.mobi.
It uses click to call for emergency numbers and tourist services. (Leucadia is a community in Encinitas, California, in San Diego County.)
Is this helpful for you? Share it with your friends! Diggs, stumbles, tweets, etc. appreciated! Thanks!