Is there any way I can redirect this script to a thank you page and then to Whats?

Asked

Viewed 51 times

0

Hello, I’m new in javascript, I’m using a site called Whatshelp to generate me a Whats boot, I would need that when the person clicked on the Whats button it redirected to a thank you page and then immediately went to Whatsapp. If anyone

<script type="text/javascript">
    (function () {
        var options = {
            whatsapp: "5547984062427", // WhatsApp number
            call_to_action: "Fale Conosco!", // Call to action
            position: "right", // 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>

  • you shouldn’t do this on the thank page?

  • Unfortunately the boot was asked to redirect to the thank you page and soon after to Whats.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.