현재 URL을 라이브러리없이 클립보드로 복사하구싶을때?? function copyLink(){ let currentUrl = window.document.location.href; let t = document.createElement("textarea"); document.body.appendChild(t); t.value = currentUrl; t.select(); document.execCommand('copy'); document.body.removeChild(t); alart('복사가 완료되었습니다'); }