This is such a little handy function copy using Javascript copy to clipboard that allows you to create a button that will copy a block of content into the user’s clipboard. The solution is to use the built-in execCommand function.
(more…)
Tag: execCommand
-
JavaScript Copy To Clipboard