Need Help Please!!

So I created an affiliate dashboard where users can signup and promote offers and make money by promoting products for companies I partner with. When someone logs into their affiliate dashboard they will then see a unique url that is made just for them. They have to highlight the link in order to copy it.

HERE IS MY QUESTION…
Is there any type of script I can write that will allow the user to simply click a “copy” button and allow the link to be automatically copied to their phone/computer? I have seen it done plenty of times by other companies, but I can not figure out for the life of me the correct code to write.

All the help would be appreciated!

***Also the link that is provided for them is a set to a unique database, so it must work with the unique database as well.

Feel free to post a Feature Request .