How to trigger a phone call when clicking a link in a web page on mobile phone
Most modern devices support the tel: scheme. So use <a href="tel:555-555-5555">555-555-5555</a>
and you should be good to go.
If you want to use it for an image, the <a>
tag can handle the <img/>
placed in it just like other normal situations with : <a href="tel:555-555-5555"><img src="path/to/phone/icon.jpg" alt="Call 555-555-5555" /></a>
Can I make a phone call from HTML on Android?
Yes you can; it works on Android too:
tel: phone_number
Calls the entered
phone number. Valid telephone numbers
as defined in the IETF RFC 3966 are
accepted. Valid examples include the
following:* tel:2125551212
* tel: (212) 555 1212
The Android browser uses the Phone app to handle the “tel” scheme, as defined by RFC 3966.
Clicking a link like:
<a href="tel:2125551212">2125551212</a>
on Android will bring up the Phone app and pre-enter the digits for 2125551212 without autodialing.
Have a look to RFC3966
Related Topics
What Is the HTML For="" Attribute in <Label>
HTML + CSS: Ordered List Without the Period
Change Name of Download in JavaScript
How to Isolate a Div from Public CSS Styles
Does a Name Attribute Have to Be Unique in a HTML Document
Base64 Encoded Image Is Not Showing in Gmail
Can Microdata Be Applied on Any Type of HTML Element
Default Text Which Won't Be Shown in Drop-Down List
Style Not Working for Innerhtml in Angular
Html:How to Show Images in a Textarea
Pixelated Edge Around a CSS Circle with Overflow: Hidden;
P-End-Tag (</P>) Is Not Needed in HTML
My @Media Queries Aren't Working on Mobile Devices