Is there a way to make a phone number clickable on an iphone or android phone to make a call in HTML?

Is it possible to make a phone number clickable in HTML so that when a user clicks on the number it is called?

91391 次浏览

Something like this should work:

<a href="tel:+1-800-555-5555">Call 1-800-555-5555</a>

More info:

http://en.wikipedia.org/wiki/URI_scheme#tel:

https://www.rfc-editor.org/rfc/rfc3966

You can detect a phone number in iOS with:

<i>web_view.dataDetectorTypes=UIDataDetectorTypePhoneNumber;<i>