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 >