WhatsApp HTML code for your website
In this tutorial I am going to explain in a simple step how to insert WhatsApp on your web page. When someone presses the "send message" button, the corresponding application will open directly to start chatting with you.
You have to create an HTML link that will open the WhatsApp application and start a conversation with the phone number that you specify. You just have to replace “0123456789”,»+12 346 678 910″ with your phone number (remember to put the international code of your country in front).
Method 1:
<a href="https://api.whatsapp.com/send?phone=0123456789">Send us a WhatsApp message</a>
/* With predefined message */
<a href="https://api.whatsapp.com/send?phone=0123456789&text=Hola, Nececito mas informacion!">Send us a WhatsApp message</a>
Method 2:
<a href="whatsapp://send?text=Hello, Index.pe&phone=+12 346 678 910&abid=+12 346 678 910">+12 346 678 910