In doing a micro site in the use of a convenient service phone function , the use of Mobile Web pages listed in the phone number , click on the need to implement the call Address Book, the page one-touch dial call function .
If you need to make calls in mobile browsers, send email, US servers, call SNS and other features, the Mobile Phone Web page (HTML5) JavaScript provides the interface is a good way.
Use URL link to make Phone call function on safari iOS, Hong Kong server, Android browser, webOS browser, Symbian Browser, Ie,operamini and other mainstream browsers.
1. The most commonly used Web page JS implementation of one-touch dialing phone calls function:
<a href= "tel:13764567708" > Mobile Web Page JS One-click Call Number Consulting function </a>
On the dial-up interface, display the number and prompt to dial.
Support most browsers, but the support is not good on QQ browser.
Now there are masking general dialing function, the specific solution see " development to achieve one-touch dialing problem of shielding solution "
2. The most commonly used Web page JS implementation of a key to send SMS functions:
<a href= "sms:13764567708" > Mobile Web page JS One click send SMS advisory function </a>
In the information entry interface, display the sending number, and prompt input information.
Support most browsers, but the support is not good on QQ browser.
3. Mobile Web page automatic detection phone number
<meta name= "format-detection" content= "Telephone=no" >
<meta http-equiv= "X-rim-auto-match" content= "None" >
4. Make a call using the Wtai protocol.
The code looks like this:
Instance:
<a href= "wtai://wp//mc;13764567708" > Call 10086 </a>
<a href= "wtai://wp/ap;13764567708;" > Save 10086 to the phone book </a>
It is recommended that this approach be used.
5, the way is not very effective:
<a href= "dc:13764567708" > Mobile Web Page JS One-click Call Number Consulting function </a>
After testing, most browsers are not supported.