I create my own portfolio website, on the navigation bar, there is my email.
I want anybody cliking on this email will copy it to the clipboard.
That's what i tried but it's not working !

```
<button onclick="copy()" id="copy">Copy</button>

function copy() {
var copyText = document.querySelector("#copy"); 
copyText.select(); document.execCommand("copy");}
document.querySelector("#copy").addEventListener("click", copy);

```