I have been looking for a solution to load a block of text to a client’s clipboard at the click of a button; basically I needed a way to “copy” text for pasting without having to actually select and copy it.
Two of solutions that didn’t work:
- jQuery’s .clipboard plugin (Last updated in 2009 which included a flash component. Due to security issues, it doesn’t work in all modern browsers or flash players.)
The solution that does work:
- Zeroclipboard, a flash based solution which works across most browsers. The implementation is quick, easy, and elegant.
Project Site: http://code.google.com/p/zeroclipboard/
Demo Page: http://www.michaelbud.com/samples/zeroclipboard/
Let me know if you need help getting something like this to work on your website.