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:
link. When I click on such a link in my desktop browser, Firefox reports:
The address wasn't understood
Firefox doesn't know how to open this address, because one of the following protocols (tel) isn't associated with any program or is not allowed in this context.
I know about mobile device detection. This does not what I want, because most tablets are mobile but can't make a phone call.
Questions
- Is it possible to detect if a device can make a phone call using Javascript or HTML, and if so how?
- If this can't be done, what's the best way to handle this?