如何在单击超链接/图像/按钮时仅打开WhatsApp应用程序 [英] how to open only whatsapp application when click on a hyperlink/image/button

查看:1239
本文介绍了如何在单击超链接/图像/按钮时仅打开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>

这篇关于如何在单击超链接/图像/按钮时仅打开WhatsApp应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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