Копирование в буфер обмена
navigator.clipboard.writeText(this.textContent) .then(() => console.log("Скопировано!")) .catch(() => console.log("Скопировать не удалось"));
navigator.clipboard.writeText(this.textContent) .then(() => console.log("Скопировано!")) .catch(() => console.log("Скопировать не удалось"));