I have a button on my website. This button is called copy
. When the user clicks it, I want to have something be copied.
I already make the JavaScript function like this:
function copyToClipboardCrossbrowser(s, el) {}
where s
is the data to be copied. How please?
Thanks