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 } });
Brett Irwin
Bought a new sierra, worried about the tailgate hitting the hitch, I even told my wife on the way home I cant believe there isn't a switch that keeps you from mashing the high dollar tailgate, next day I found Tailgate Fix bought it easy install works as expected so far, nice piece