Recently, a friend wants to call a phone number on a mobile page. I checked the relevant information and tried every statement, only the label is the most convenient and compatible method.
Call on the mobile page
The code is as follows: |
Copy code |
<A href = "tel: 18511178920"> |
Send text messages to the audience </a>
The code is as follows: |
Copy code |
<A href = "sms: 18511178920"> |
This method is the best, compatible with mobile safari, chrome, uc, qq Browser, Dolphin Browser, etc.
It is not recommended to use other methods, mainly because the compatibility is too poor and can be listed for reference.
1. Mobile web page automatically detects phone numbers
The code is as follows: |
Copy code |
<Meta name = "format-detection" content = "telephone = yes"> |
2. Call using the wtai protocol
The code is as follows: |
Copy code |
<A href = "wtai: // wp // mc; 18511178920"> call the defender </a> <A href = "wtai: // wp/ap; 18511178920;"> store the owner in the phone book. </a> |