WhatsApp的HTML通话链接 [英] Whatsapp html call link

查看:256
本文介绍了WhatsApp的HTML通话链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在我的网站上添加一个链接,该链接会显示立即打电话,当按下时,用户可以从他们的whats应用程序调用。



任何帮助都会非常有帮助。
Thanks $ / $>

解决方案

创建电话链接就像创建一个mailto:link ...
your链接将如下所示:

 < a href =tel:1234561234> Call ME!< / a> 

这告诉浏览器插件和智能手机,所遵循的链接是电话号码,并使用默认安装电话应用程序

编辑:



基于反馈和其他用户评论过的内容,我建议尝试一下,我是

 < a href =whatsapp:// tel: 3216541234\" >< / A> 



 < a href =whatsapp:// 3216541234>< / a> 

如果这对您有用,请将发布此信息的其他用户标记为正确答案...我只是简单地引用了他/她的内容,我知道这种东西存在,但不知道网址设计,所以他们确实值得信任。



第二次编辑:
访问此网站以查看应该如何工作: https://www.whatsapp.com/ faq / android / 28000012



基于我在这里看到的内容,我实际上会猜测它更像是:

 < a href =whatsapp:// call?number = ##########>< / a> 

请让我们知道工作结果,以便我可以修改我的答案以获得正确答案。 :)


Is there a way to add a link on my website that will say "Call now" and when it's pressed the user can call from their whats app.

Any help would be very helpful. Thanks

解决方案

Creating a telephone link is much like creating a mailto: link... your link would look like this:

<a href="tel:1234561234">Call ME!</a>

this tells browser plugins and smart phones that the link being followed is a telephone number and to use the default telephone application installed.

EDIT:

Based on feedback and what other users have commented, I would suggest trying this, I am unsure if this will work as expected but maybe try some different combinations.

<a href="whatsapp://tel:3216541234"></a>

Or

<a href="whatsapp://3216541234"></a>

if this works for you please mark the other user who posted this information as the right answer... I simply referenced his/her content, I knew this kind of thing existed but did not know the url design so they do deserve the credit.

SECOND EDIT: Visit this website to see kind of how this should work: https://www.whatsapp.com/faq/android/28000012

based on what I see here, I would actually guess it's more like:

<a href="whatsapp://call?number=##########"></a>

Please let us know the working result so I can modify my response to have the right answer. :)

这篇关于WhatsApp的HTML通话链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆