top of page
bottom of page
function copyText() { const text = document.getElementById('text-to-copy').innerText; navigator.clipboard.writeText(text).then(() => { alert('Text copied to clipboard'); }).catch(err => { alert('Error in copying text: ', err); }); }