Copy text

Hey,

So I created a button that when clicked should copy a text from my site to the device’s clipboard, how I can I do it?