简体   繁体   中英

iPhone Safari making a phone call

Is there something I can put in the code for an HTML page I am making for Safari on iPhone to make a call when clicked on? Something similar to:

<a href="tel://1300111222">click to call</a>

尝试从链接中删除//,即<a href="tel:1300111222">click to call</a>

As Nava answered, remove // from your link.

But if you are using same web-application for desktop as well as mobile, then this won't work for your desktop and when you click on link, page will gone to "tel:XXXXXXXX". So this idea became fail.

Try using "callto" instead of "tel" like this

<a href='callto:1300111222'>Click to call</a>

Then if you are using mobile browser, then it will show call prompt and if you are using windows browser, then it will prompt you to call with "Skype" and any other related application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM