Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tel link fallback

I am currently working on a mobile version of a site which has a "Call" link at the top. I'm using a tel: protocol link to deal with that right now, but the problem is what happens if the user is on a tablet or a phone with no SIM card etc. If possible, I'd like to try the tel: link and if that fails then pop up a DIV with a couple of phone numbers they can choose from. Any ideas how it might be possible to detect if the tel: link worked/works, either at page load or when it is clicked?

like image 926
wizzardmr42 Avatar asked Feb 06 '26 20:02

wizzardmr42


1 Answers

You're probably better off changing the way you present the phone number to the user. How about putting the information next to the call button or with a drop down that shows it? Detecting whether or not it succeeded is not likely to be cross platform.

Another suggestion would be to change "call" to the phone number itself. Tablet users are less likely to click on it anyway if they actually see the number. "Call" is likely to either piss them off by thinking the phone number is being concealed from them assuming they're on a smart phone or make them think "ah, I can click here and it'll show me the number."

like image 82
Mike Thomsen Avatar answered Feb 09 '26 08:02

Mike Thomsen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!