Special links for Handheld Mobile: call, send text, send e-mail

Source: Internet
Author: User

If you need to make calls, call SMS, send email, etc. in a mobile browser, the interface provided by the Mobile Phone Web page (HTML5) JavaScript is a good idea.

The use of URL links to achieve in the Safari ios,android browser, webOS browser, Saipan browser, Ie,operamini and other mainstream browser, to make phone calls function.

1. Call

Precede the phone number with a + (plus sign) to indicate the international number. Such as:

The most commonly used Web page JS implementation of one-touch dialing phone dialing function

Example:

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

Make a call using the Wtai protocol

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

If it is an interface that needs to invoke SMS, you can write the link in the following format:

1 SMS:<phone_number>[,<Phone-number >] *[?body=<message_body>]

For example:

1 <ahref= "sms:10086">Send 10086 text messages</a><BR/>2 3 <ahref= "Sms:10086?body=cxye">Send a text message with "Cxye" to 10086</a><BR/>4 5 <ahref= "Sms:10086,10010?body=cxye">Send text messages for "Cxye" to 10086 and 10010</a>

3. Mail message

Use mailto just like normal html

1 <ahref= "Mailto:[email protected]">Mail</a>2 3 <ahref= "Mailto:[email protected],[email protected]">Mail</a>4 5 <ahref= "Mailto:[email protected]?subject=testing">Mail</a>6 7 <ahref= "Mailto:[email protected]?subject=testing mailto&[email protected]">Mail</a>

4. Android Market

If you want a link to activate the Android Market feature, you can write the link:

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

Where <query> is the content of the search, the name of your app

Example:

1 <  href= "Market://search?q=myapp">MyApp</A  >
5. Map Positioning GPS
1 <  href= "geopoint:[longitude],[latitude]"> My location </a>

For example:

1 <  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.