document.addEventListener('DOMContentLoaded', function () { const link = document.querySelector('#terms-note a'); if (link) { link.addEventListener('click', function (e) { e.preventDefault(); elementorProFrontend.modules.popup.showPopup({ id: 1234 }); // Replace with your popup ID }); } });