HTML5 jump to call function

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.