Html mailto:相当于电话的链接?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24349340/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
mailto: link equivalent for phone calls?
提问by user3760124
Is there any way using html and/or JS to link an image so that it makes a phone call. Similar to the mailto: links. This would just make life a lot easier if this was possible. Say if a person had skype, could a button then open skype for them and call a number?
有什么方法可以使用 html 和/或 JS 来链接图像,以便拨打电话。类似于 mailto: 链接。如果可能的话,这只会让生活更轻松。假设一个人有Skype,是否可以通过一个按钮为他们打开Skype并拨打电话?
Thanks in advance
提前致谢
回答by Haim Evgi
like this:
像这样:
<a href="tel:+1800229933">Call us free!</a>
you can look also on this article
你也可以看看这篇文章
回答by ebiv
Presuming that desktop userd use skype,
假设桌面用户使用Skype,
Call <a href="<? echo ($detect->isMobile()) ? 'tel' : 'callto'; ?> :+1-579-827-0034">579-827-0034</a>