diff --git a/dist/link.html b/dist/link.html index bb9a187..5c7230b 100644 --- a/dist/link.html +++ b/dist/link.html @@ -23,6 +23,14 @@ link_el.innerHTML = link; } }); + + function clipboard() { + let copyText = document.getElementById("link"); + + navigator.clipboard.writeText(copyText.href); + + alert("Copied: " + copyText.href); + } @@ -31,6 +39,8 @@ + + Return to home