admin管理员组文章数量:1426306
I dont want to share text in whatsapp, just want to open whatsapp app on click I tried
<a href="whatsapp://" class="btn whatsapp-btn btn-outline whatsapp-outline btn-block" >Create group</a>
Referred couple of links how to open only whatsapp application when click on a hyperlink/image/button also Whatsapp html call link
But couldn’t get the exact answer.
I dont want to share text in whatsapp, just want to open whatsapp app on click I tried
<a href="whatsapp://" class="btn whatsapp-btn btn-outline whatsapp-outline btn-block" >Create group</a>
Referred couple of links how to open only whatsapp application when click on a hyperlink/image/button also Whatsapp html call link
But couldn’t get the exact answer.
Share Improve this question edited May 23, 2017 at 12:25 CommunityBot 11 silver badge asked Mar 16, 2017 at 11:24 Chandrika DesaiChandrika Desai 971 gold badge3 silver badges8 bronze badges1 Answer
Reset to default 4From Whatsapp documentation:
WhatsApp provides a custom URL scheme to interact with WhatsApp:
If you have a website and want to open a WhatsApp chat with a pre-filled message, you can use our custom URL scheme to do so. Opening whatsapp://send?text= followed by the text to send, will open WhatsApp, allow the user to choose a contact, and pre-fill the input field with the specified text.
So, this should work:
<a href="whatsapp://send?text=YoYoYo" class="bla">Whatsapp link</a>
And if i'm lucky, also this! (when clicked from mobile device...)
本文标签: javascriptClicking a link in mobile website should open whatsapp appStack Overflow
版权声明:本文标题:javascript - Clicking a link in mobile website should open whatsapp app - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745474869a2659916.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论