How to copy a link to your clipboard in JS
![Oscar de la Hera Gomez](https://www.delasign.com/CDN/headshots/profile.webp)
![A flower that represents Javascript with the text "Copy Link to Clipboard" beneath it.](https://www.delasign.com/CDN/images/How-to-copy-a-link-to-your-clipboard-in-JS.webp)
To copy a link to your clipboard in Javascript use the code navigator.clipboard.writeText(URL), where URL is the link you wish to copy.
navigator.clipboard.writeText(URL)
Any Questions?
We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.