document.getElementById('custom-trigger').addEventListener('click', function (event) { event.preventDefault(); // Prevent default link behavior // Find the CTA button by its specific class const ctaButton = document.querySelector('.hs-cta-trigger-button-183584791383'); if (ctaButton) { ctaButton.click(); // Simulate a click to open the CTA } else { console.error('HubSpot CTA button not found!'); } });