tags:

views:

49

answers:

1

Hi,

How I can write a phone number in the xhtml file and when the user clicks (on the number) the iphone call automatically (to that number)?

Any ideas?

+5  A: 
<a href="tel:2128675309">call Jenny</a>
Jesse Beder
What happens on non-iphone devices?
Moshe
It might be worth pointing out that the format -from my own testing just now- is `<a href="tel:2128675309">link-text 2128675309</a>`.
David Thomas
perfect, done and working :-)
joanballester
@Moshe, I can't say for sure, but it seems to be an official RFC (http://www.rfc-editor.org/rfc/rfc3966.txt), so they should be able to work with it.
David Thomas