Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

How can I copying a string to the clipboard?

Any other options besides ZeroClipboard?

2 Answers

From the research I've done, there seems to be no easy way to copy information from the clipboard. This is because being able to get the information from the user's clipboard will create a lot of issues with privacy and security.

Using a library like ZeroClipboard sounds like a great idea - it solves the problem for you. If you want to build your own solution for clipboard-copying, you will need to use Flash / ActionScript.

Yeah that is what I found. Looking for a answers that doesn't need Flash.

Your only other option then would be to look into the HTML5 Clipboard API.