Home > Web Front-end > JS Tutorial > body text

Several ways to implement the phone call function in jquery mobile_jquery

WBOY
Release: 2016-05-16 17:26:50
Original
2329 people have browsed it

If you need to make calls, send emails, call SNS and other functions in a mobile browser, the interface provided by jquery mobile is a good way.

Adopt the url link method to implement the call function in mainstream browsers such as safari ios, android browser, webos browser, Symbian browser, ie, operamini and so on.

1. The most commonly used method:

Copy code The code is as follows:

In the dialing interface, the number is displayed and prompted to dial.

Supports most browsers, but does not support well on QQ browser.

2. Automatically detect phone numbers

If you want to support safari for ios and blackberry browser number, you need to add the following tag:

Copy the code The code is as follows:



3. Use wtai protocol to make calls.

In wml, you can call the wtai function of the device to call a specific phone number. Currently, more and more browsers support this feature, but not all.

The code is as follows:

Copy codeThe code is as follows:

<input name= "phone_no" format="*m" value="13"/> <do type="option" label="Callout number"> <go href="wtai://wp/mc;$(phone_no)"/> </do><br/> Or write the phone number directly: <a href="wtai://wp/mc;1331597312*">Call </a>

Example :
Copy code The code is as follows:

This method is recommended.

4. There is another way:

Copy the code The code is as follows:

After testing, most browsers no longer support it.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template