简体   繁体   中英

How to Write Clickable Telephone Number in Html which is Local Area Number without Country Code

I am trying to find the way to write clickable Telephone Number in one of my websites. The issue is when I click this on my apple device, It adds + in front of 1 and the number is not dialled properly, because it should not be added. Is there any solution to this where the number 13003377274 is dialled as is?

  <a href="tel://13003377274">
    <img alt="call" src="https://www.xxx.au/wp-content/uploads/2018/08/icons8-phone-50-1.png" width="25" height="25"></a>
NIST Telephone Time-of-Day Service 
<a href="tel:+1-303-499-7111">+1 (303) 499-7111</a>

you must add country code to specify where to call. and try above code.

know more about tel https://developers.google.com/web/fundamentals/native-hardware/click-to-call/

在此处输入图片说明

Something like this should work:

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM