document.addEventListener("DOMContentLoaded", function () { var btn = document.querySelector("#menu-item-296"); // Your button with ID menu-item-296 if (btn) { btn.addEventListener("click", function (e) { e.preventDefault(); // Prevents the default button click action (if any) console.log("Mailchimp popup triggered"); // For debugging window.dispatchEvent(new Event("MailchimpPopupOpened")); // Trigger the Mailchimp popup }); } else { console.log("Button not found!"); // Debugging if the button ID is incorrect } });
Katelyn Clifton
TailgateFix is an amazing product that solves the problem of opening your tailgate without denting or scratching it against the tailgate hitch! Great product that gets the job done and gives you what you paid for. Jim and Mike are customer oriented and easy to work with. Will definitely recommend!