nyazoom/dist/scripts/link.js

6 lines
171 B
JavaScript

function clipboard() {
let copyText = document.getElementById("link");
navigator.clipboard?.writeText(copyText.href).then(() => alert("Copied: " + copyText.href));
}