jQuery Copy To Clipboard

ZeroClipboard is a library that provides you with a way of coping text to your clipboard using Adobe flash and a Javascript interface. Flash can access your computers clipboard because you have to install flash and agree to the security settings, therefore we have to use flash to access the clipboard. We can use Javascript as an interface to flash so we can start this off with a click event on a button.

How to use ZeroClipboard

1. Download ZeroClipboard Flash file(ZeroClipboard.swf) and Javascript file(ZeroClipboard.js) from http://zeroclipboard.org/.
2. After Downloading .swf and .js files initialize ZeroClipboard scripts.

3. Now attach copy to clipboard functionality to a html anchor link.

Complete Example:

for ZeroClipboard Documentation visit github page or official website pages.
1. http://zeroclipboard.org/
2. https://github.com/zeroclipboard/zeroclipboard

Categorized as JQuery

By Arjun

I am Arjun from Hyderabad (India). I have been working as a software engineer from the last 7+ years, and it is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.

0 0 vote
Article Rating
Notify of
Newest Most Voted
Inline Feedbacks
View all comments
5 years ago


5 years ago
Reply to  ramfool

ka hgo bhai

Josmar Augusto Fonseca Barbosa
Josmar Augusto Fonseca Barbosa
4 years ago


I’ve beem trying to copy from input elements from one page to equivalent input element of another page ( kind of a data casting from source page to target page). I still not successfull.