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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 02:06:45  来源:igfitidea点击:

mailto: link equivalent for phone calls?

html

提问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

你也可以看看这篇文章

add-telephone-number-links-with-html

添加电话号码链接与 html

回答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>