1. 撥打電話
在電話號碼前面可以加上 + (加號)表示國際號碼。如:
最常用WEB頁面JS實現一鍵撥號的電話撥打功能
例子:
<a href="tel:10086">10086</a>
使用wtai協議進行撥打電話
<a href="wtai://wp/mc;10086">10086</a>
2. 發送短信
如果是需要調用短信的接口,可以將鏈接寫成下面的格式:
sms:<phone_number>[,<phone-number>]*[?body=<message_body>]
例如:
(1)給 10086 發短信:
<a href="sms:10086">發送信息</a> (2)給 10086 發送內容爲"cxye"的短信: <a href="sms:10086?body=cxye">發送信息</a> (3)給 10086 和 10010 發送內容爲"cxye"的短信: <a href="sms:10086,10010?body=cxye">發送信息</a>
3. Mail 發送郵件
就和普通的html一樣使用mailto
(1)給[email protected]發送郵件:
<a href="mailto:[email protected]">mail</a> (2)給[email protected]和[email protected]發送郵件: <a href="mailto:[email protected],[email protected]">mail</a>
(2)給test1@163.com發送主題爲“testing”的郵件:
<a href="mailto:[email protected]?subject=Testing">mail</a>
(2)給test1@163.com發送主題爲“testing”的郵件,並抄送給test3@126.com:
<a href="mailto:[email protected]?subject=Testing mailto&[email protected]">mail</a>
4. Android Market
如果希望一個鏈接能夠激活Android市場的功能,可以把鏈接寫成:
<a href="market://search?q=[query]">Android Market link</a>
其中<query>就是搜索的內容,你應用的名稱
例子:
<a href="market://search?q=MyApp">MyApp</a>
5. GPS地圖定位
<a href="geopoint:[經度],[緯度]">我的位置</a>
例如:
<a href="geopoint:108.954823,34.275891">我的位置</a>