Reputation: 3302
I am trying to allow user call in mobile phones as in
<a href="tel:1-408-555-5555">1-408-555-5555</a>
such that when user press the link, then it not only opens the number for calling but actually makes the call too at the same time (aka saves user one step to press button).
Also I need to add an extra code number (lets say 2525 ) dialled when call is connected. Is that possible? This is HTML5 website.
Upvotes: 0
Views: 63
Reputation: 1482
The function of clicking the link will depend on the platform, so this cannot be changed in your code. Most platforms such as iOS do not connect to the number without confirmation as a security measure.
To add the extra code number once the call has been connected, try using the p
.
<a href='tel:14085555555p2525'>1-408-555-5555</a>
However I haven't tried this so I'm not sure whether this will work.
Upvotes: 2
Reputation: 1
You have to access the dialler functionality of the phone which is not possible and as per mobile OS are considered they wont allow it due to security measures.
Upvotes: 0