//scroll to 2nd CTA let anchorlinks = document.querySelectorAll('a[href^="#"]') for (let item of anchorlinks) { // relitere item.addEventListener('click', (e)=> { let hashval = item.getAttribute('href') let target = document.querySelector(hashval) target.scrollIntoView({ behavior: 'smooth', block: 'start' }) history.pushState(null, null, hashval) e.preventDefault() }) } // ]]>