Initiating pop-up with a function

Triggering Speed-to-Lead™ pop-up when a link or button is clicked

This article is for your website support specialist. It will allow you to make a link/button which, when clicked, triggers the Convolo Leads pop-up. The pop-up is the one that asks you to fill out the form (with the phone number and other relevant information) and promises a callback in X seconds.

The easiest way to do that is to use the API function It will trigger the pop-up to show on the screen. Below are basic instructions on how to do it. You should be able to addapt it to your own website code.

  • For buttons:
// add an attribute
<button onclick=";">OPEN</button>
  • For links:
    • Adding it to one particular link tag:
      • <a href = "#"
        onclick = ";" > OPEN < /a>
    • It's also possible to assign to existing element using JS snippet with addEventListener method:
      •     document.querySelector("#myButtonId")
            .addEventListener("click", function() {
                if (;
    • To assign popup to links <a href="#callback" ..>, it is possible to use a snippet as well:
      • document.querySelectorAll('a[href="#callback"]')
            .forEach(el => el.addEventListener("click", function() {
                if (;

If you have any questions, please email us at

Did this answer your question?

Last updated on July 20, 2022