Javascript code to send wahtsapp message

 <html>

<head>

<body>

<script>

var yourNumber = "+918149996597"

var yourMessage = "Merry chritmas"

function getLinkWhastapp(number, message) {

  number = yourNumber

  message = yourMessage.split(' ').join('%20')

  window.open('https://web.whatsapp.com/send?phone=' + number + '&text=%20' + message)

}





getLinkWhastapp()

</script>



<input type=button onclick=getLinkWhastapp()  value="send">

</body>

</html>



Previous
Next Post »