If you need to make calls in a mobile browser, call SMS, send an email, and so on, mobile Phone Web page (HTML5) JavaScript provides an interface that is a good idea.
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:
<a href= "tel:10086" >10086</a>
Make a call using the Wtai protocol
<a href= "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:
Texting:
<a href= "sms:10086" > Send information </a> (2) Send text message to 10086 "Cxye" : <a href= "Sms:10086?body=cxye" > Send information < /a> (3) Send 10086 and 10010 text messages with "Cxye": <a href= "Sms:10086,10010?body=cxye" > Send information </a>
3. Mail Send Message
Use mailto just like normal html
(1) Send email to [email protected]:
<a href= "Mailto:[email protected" >mail</a> (2) Send mail to [email protected] and [email protected]: <a href= " Mailto:[email Protected],[email protected] ">mail</a>
(2) Send email to [email protected] with the theme "Testing":
<a href= "Mailto:[email protected]?subject=testing" >mail</a>
(2) Send [email protected] A message with the theme "testing" and copy it to [email protected]:
<a href= "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:
<a href= "Market://search?q=[query" >android Market link</a>
Where <query> is the content of the search, the name of your app
Example:
<a href= "Market://search?q=myapp" >MyApp</a>
5. GPS Map Positioning
<a href= "geopoint:[longitude],[latitude]" > My location </a>
For example:
<a href= "geopoint:108.954823,34.275891" > My location </a>
Mobile WAP mobile Web page HTML via special Links: Call, send SMS, email detailed tutorials