Adding a callback function for contactus click?

Add the following code after the Widget code 

<script>

// Your Call back function

function myfunc()
{
        alert("FAQPrime");
}


// If you are using JQuery 

$(document).ready( function() {
        document.getElementById("faq-bot-bottom-contactus-container").removeAttribute("target");
        document.getElementById("faq-bot-bottom-contactus-container").removeAttribute("href");
        var xx = document.getElementById("faq-bot-bottom-contactus-container");
        if(typeof(xx) !== "undefined") {
                if(xx !== null) {
                        xx.onclick = function() {myfunc();}; // myfunc is a callback function
                }
        }
        });

 

// If not using JQuery (only one of these codes should be present)

(function() {
        document.getElementById("faq-bot-bottom-contactus-container").removeAttribute("target");
        document.getElementById("faq-bot-bottom-contactus-container").removeAttribute("href");
        var xx = document.getElementById("faq-bot-bottom-contactus-container");
        if(typeof(xx) !== "undefined") {
                if(xx !== null) {
                        xx.onclick = function() {myfunc();}; // myfunc is a callback function
                }
        }
        })();

</script>

0

Did this answer your question?
...