Copy to clipboard like Google Drive does

97 views Asked by At

OK I know that JavaScript cannot put anything in my clipboard, but when you visit Google Drive from webkit browser (without flash) and then try to share some file, you have an option to generate link and after that 'copy to clipboard' button appears that just works without flash. Any ideas how it's implemented? I'd really like to copy this solution to my webapp.

1

There are 1 answers

1
Apurva On

Try using ZeroClipboard from gitHub. This is a jQuery script which helps to copy data to clipboard. Use of this script has been shown here