function copyToClipboard(text) {
// Use the Clipboard API to copy the text
navigator.clipboard.writeText(text).then(function() {
- alert("Text copied to clipboard!");
+ alert(`"`+ text + `"` + " copied to clipboard!");
}).catch(function(error) {
alert("Failed to copy text: " + error);
});