Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>
like image 498
Amarsh Avatar asked Sep 06 '10 06:09

Amarsh


People also ask

Can you make calls on safari?

Safari: Click a phone number on a webpage, then click Call. Mail: Place the pointer over a phone number in an email, click the pop-up menu , then choose how you want to make the call. Maps: Click a place of interest, then click the Call button .

Can an iPhone make a call by itself?

Turn Off Voice Control However, Voice Control can sometimes cause your iPhone to make random calls because it thinks you're telling to. Try turning Voice Control off and see if that fixes the problem. Open Settings and tap Accessibility. Tap Voice Control, then turn off the switch at the top of the screen.


2 Answers

Try to remove // from your link, that is <a href="tel:1300111222">click to call</a>

like image 106
Nava Carmon Avatar answered Oct 18 '22 17:10

Nava Carmon


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.

like image 41
RohitPorwal Avatar answered Oct 18 '22 16:10

RohitPorwal