how to open only whatsapp application when click on a hyperlink/image/button [duplicate]

拟墨画扇 提交于 2019-12-13 22:25:00

问题


A code required for html website, when user open my website from mobile device and click on hyper link/image/button, then the link should open only whatsapp application.

I only need to open whatsapp application when user click on a link in my html website. that's it.

please share the code.


回答1:


you can use this to open whatsapp app when user click on the link. Edit according to your need

<a href="whatsapp://send?text=The text to share!" data-action="share/whatsapp/share">Whatsapp</a>


来源:https://stackoverflow.com/questions/40885105/how-to-open-only-whatsapp-application-when-click-on-a-hyperlink-image-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!