[![enter image description here][1]][1]
bold, dynamic text**
I am trying to implement a copy functionality on an icon within a website. I have successfully achieved this with input text, but faced challenges when attempting to apply it to an icon.
<div class="icon-container" style="display: inline-block;">
<input class="paste" type="button" value="Copy Url" @click="urlCopy" id="copy" hidden/>
<textarea class="paste" id="url" rows="1" cols="30" hidden></textarea>
<img style="display: inline-block" src="share.png" alt="">
</div>
urlCopy() {
console.log("sulg", this.slug.fullPath)
let Url = document.getElementById("url");
Url.innerHTML = window.location.href;
console.log(Url.innerHTML)
Url.select();
document.execCommand("copy");
}