Powered by Blogger.

Copy to Clipboard

 


If you are trying to copy text to the clipboard by using javascript on click event then we have given a example or code that you can able to copy and paste that code to implement.


Make sure that both the file ZeroClipboard.js and ZeroClipboard.swf are available. You can able to download that file from here download JS and download swf. Also make sure that Adobe Flash is installed and enabled.


You have to place javascript file in the js folder. Before you run the program you have to check that the given path.




In the above example if you click the Copy to Clipboard button then it will copy the content from textarea and you can able to paste it.



You can able to copy & paste below code into a <body> section of page and open it in browser.

HTML Content Script Content

No comments