HTML pages through special Links: call, send text messages, email detailed tutorials

Source: Internet
Author: User

Using the URL href link, to achieve in the Safari ios,android browser, webOS browser, Saipan browser, Ie,operamini and other mainstream browser, make phone call function.

1. Make a phone 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:

<ahref="tel:10086">10086</a>     

Make a call using the Wtai protocol

<ahref="wtai://wp/mc;10086">10086</a>    
2. Send SMS

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

SMS:<phone_number>[,<phone-number>]*[?  Body=<message_body;]          

For example:

(1)  send SMS to 10086:  
<ahref="sms:10086"> send information </a>
(2) Send text message to 10086 "Cxye":<ahref="Sms:10086?body=cxye"> Send Message </a >
(3) Send the message "Cxye" to 10086 and 10010:<ahref="Sms:10086,10010?body=cxye"> Send Message </a>

3. Mail Send Message

Use mailto just like normal html

(1) Send email to [email protected]:

<ahref="mailto:[email protected">mail</a>
(2) Send email to [email protected] and [email protected]:

<ahref="mailto:[email protected],[email protected]">mail</a>
 
(3[ Email protected]. Com Mail with the theme "testing":

<a< Span class= "PLN" > href= "mailto:[email protected"? Subject=testing ">mail</A>

(4) to [email protected]. COM sends a message with the subject "testing" and copies it to [email protected]. COM:
<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:

<ahref="Market://search?q=[query">Android Market link</a>  

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

Example:

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

For example:

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

HTML pages through special Links: call, send text messages, email detailed tutorials

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.