I already have it set up to where the page URL dynamically becomes the value of href (I can change the attribute or add one if needed). How can I make the link copy the href value to the clipboard?
I'm not looking for how to copy text from some other element by calling on it's id or class, I'm trying to make the link copy the text from the attribute in itself.
<li><a href='page.url'><i class='material-icons'>content_copy</i></a></li>
 
    