Skip to content Skip to sidebar Skip to footer

Javascript: Detect If Device Can Make Phonecall

Is it possible to detect if a device can make a phonecall or not? I have a webpage with a list of phone numbers. I want to make them clickable if the device can call, using the tel

Solution 1:

I think iOS does this automatically, not sure about the other OS. But if you just check the devices by their name using simple Javascript/jQuery, wouldn't that be sufficient?

Something like this:

$.browser.device = (/android|webos|iphone|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));

Post a Comment for "Javascript: Detect If Device Can Make Phonecall"