Send text to WhatsApp open on PC browser
P粉937769356
P粉937769356 2024-03-22 13:30:34
0
1
498

I'm using some JavaScript code to enable PC users to send texts to WhatsApp friends:

window.open("https://wa.me/?text=" encodeURIComponent("Hello, world!"));

However, it does work even if a WhatsApp tab is already open - it opens a new tab (forcing the user to reconnect to WhatsApp on a new tab).

Is there an option to use an already open WhatsApp tab (if available)?

P粉937769356
P粉937769356

reply all(1)
P粉875565683

Not possible unless you are building a Chrome extension. You may want to checkRetrieve which tabs are open in Chrome?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!