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:
<href= "tel:10086">10086</a>
Make a call using the Wtai protocol
<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"> To 10086Send SMS</A><Br/>23<Ahref= "Sms:10086?body=cxye" > sends a text message with "Cxye" to 10086 </ a><br />4 5 <a href= "sms : 10086,10010 Body=cxye "> send messages to 10086 and 10010" Cxye "</< Span style= "color: #800000;" >a>
3. Mail message
Use mailto just like normal html
1<AHref= "Mailto:[email protected]">mail</A>23<AHref= "Mailto:[email Protected],[email protected]">mail</A>45<a href= "Mailto:[email protected]?subject=testing ">mail</< Span style= "color: #800000;" >a>6 7 <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:
<href= "Market://search?q=[query]">android Market link</a>
Where <query> is the content of the search, the name of your app
Example:
<href= "Market://search?q=myapp">myapp</a>
5. Map Positioning GPS
<href= "geopoint:[longitude],[latitude]"> My location </a>
For example:
<href= "geopoint:108.954823,34.275891"> My location </a>
Special links for Handheld Mobile: call, send text, send e-mail