How do I make a phone number recognizable to a smartphone?

2.8k Views Asked by At

I have a phone number on my contact page and I want it to dial when someone taps it on a smartphone browser, Android and iPhone. Can someone tell me how that's done? Thanks! BTW, I'm using Cufon which is not selectable. Is that a problem here?

3

There are 3 best solutions below

3
On BEST ANSWER

Most Android phones will pick up phone-number-looking numbers automatically (sometimes too aggressively - my DroidX insists that all 4-digit numbers are phone numbers, which is rather irritating), but I suppose the cufon might be messing with that.

If you want to be explicit, though, you can use an RFC3966 telephone link, e.g.

<a href="tel:+1-800-275-2273">
Call Apple Customer Support at 1-800-275-2273
</a>.

You can also check out Apple's docs on phone links.

0
On

Take a look at http://en.wikipedia.org/wiki/URI_scheme to learn what a URI scheme is.

the tel URI scheme seems like what you need, but I have no idea if it really works or is implemented.

0
On

You can disable the now native phone number detection by using a simple tag:

Credit: http://mobile.tutsplus.com/tutorials/mobile-web-apps/phone-number-links/