HTML & CSSWeb Development

Load content to the clipboard

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.

Most of the solutions that are available are NOT cross browser compatible. I have looked at  different Javascript, jQuery, and Flash based systems, but all of them were older and were lacking cross-browser compatibility.

Two of solutions that didn’t work:

The solution that does work:

Let me know if you need help getting something like this to work on your website.

Leave a Reply

Your email address will not be published. Required fields are marked *