Special links on mobile terminals: making phone calls, sending text messages, and sending emails

Source: Internet
Author: User

If you need to call, call sms, send email, and other functions in a mobile browser, the interface provided by mobile WEB page (HTML5) Javascript is a good solution.

Using url links, you can call Safari ios, Android, webos, Saipan, IE, Operamini, and other mainstream browsers.

1. Call

+ (Plus sign) can be added before the phone number to indicate the international number. For example:

The most common WEB page JS supports one-click dialing.

Example:

1 <a href="tel:10086">10086</a>

Call using the wtai Protocol

1 <a href="wtai://wp/mc;10086">10086</a>

2. SMS

If you need to call the SMS interface, you can write the link in the following format:

1 sms:<phone_number>[,<phone-number>]*[?body=<message_body>]

For example:

1 <a href = "sms: 10086"> send a text message to 10086 </a> <br/> 2 3 <a href = "sms: 10086? Body = cxye "> send a text message with the content" cxye "to 10086 </a> <br/> 4 5 <a href =" sms: 10086, 10010? Body = cxye "> send a text message with the content" cxye "to 10086 and 10010 </a>

 

3. Mail

Use mailto just like normal html

1 <a href="mailto:test1@163.com">mail</a>2 3 <a href="mailto:test1@163.com,test2@126.com">mail</a>4 5 <a href="mailto:test1@163.com?subject=Testing">mail</a>6 7 <a href="mailto:test1@163.com?subject=Testing mailto&cc=test3@126.com">mail</a>

 

4. Android Market

If you want a link to activate the Android Market function, you can write the link as follows:

1 <a href="market://search?q=[query]">Android Market link</a>

<Query> is the search content and the name of your application.

Example:

1 <a href="market://search?q=MyApp">MyApp</a>

5. GPS for map Positioning

1 <a href = "geopoint: [longitude], [latitude]"> my location </a>

For example:

1 <a href = "geopoint: 108.954823, 34.275891"> my location </a>

 

Related Article

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.