} function handleClick(e) { e.preventDefault(); localStorage.setItem('popupClosed', 'true'); document.getElementById('popupOverlay').style.display = 'none'; window.location.href = e.currentTarget.href; }