JavaScriptNo Comments

default thumbnail

Whatsapp is very much needed today. Most of people use whatsapp. So we use a whatsapp button on our website to access the whatsapp directly. Use the below script in footer.

Javascript

<!-- WhatsHelp.io widget -->
<script type="text/javascript">
    (function () {
        var options = {
            whatsapp: "+91 9876543210", // WhatsApp number
            call_to_action: "Chat live with an agent now!", // Call to action
            position: "left", // Position may be 'right' or 'left'
        };
        var proto = document.location.protocol, host = "whatshelp.io", url = proto + "//static." + host;
        var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url + '/widget-send-button/js/init.js';
        s.onload = function () { WhWidgetSendButton.init(host, proto, options); };
        var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
    })();
</script>
<!-- /WhatsHelp.io widget -->

Be the first to post a comment.

Add a comment