html link 到 phone 数字在 firefox 中给出错误

html link to phone number gives error in firefox

我刚刚发现了 html 5 种方法,可以将 link 转换为 phone 数字,如下所示:

<a href="tel:12345"

在移动设备上运行良好 phone,但在桌面浏览器(例如 firefox)上会出错。如何提升桌面用户的使用体验?


更新:

这个问题已经回答 in this SO question。我在那里添加了我的新见解作为答案。

桌面上似乎没有分配给 tel: url 的应用程序。 例如,您可以解析 navigator.appVersion javascript 对象的一种变体,以将 tel: link 替换为 skype:。 看看What is the best way to detect a mobile device in jQuery?