Skip to content

Tag: clipboard

How can I copy rich text contents to the clipboard with JavaScript?

Premise I need help copying rich text to the clipboard using JavaScript. I have searched around and haven’t found anything to suit my specific needs. Code Problem The aforementioned code isn’t working and is resulting in an object expected error. Any help is appreciated! I have seen a library out there called zeroclipboard, but would prefer to write my own