/form-to-whatsapp

WhatsApp send message with form function

Primary LanguageHTML

Form to WhatsApp

WhatsApp send message with form function

Usage/Examples

...
//Join text with WhatsApp API
let url = `https://api.whatsapp.com/send?phone=${PHONE_NUMBER}&text=%20${textToSend}`

//Open WhatsApp App
window.open(url, "-blank")

Complate exemple

Access the file app.js

Demo

Click here to demo

Tech Stack

Client: JavaScript Vanilla