如何在单击超链接/图像/按钮时仅打开WhatsApp应用程序

问题描述:

html网站所需的代码,当用户从移动设备打开我的网站并点击超链接/图像/按钮时,链接应该只打开whatsapp应用程序。

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.

我只需要在用户点击我的html网站中的链接时打开whatsapp应用程序。就是这样。

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

请分享代码。

please share the code.

当用户点击链接时,使用此命令打开whatsapp应用程序。根据您的需要编辑

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>