Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

By intentional I mean the user is actively clicking a button or performing an action that leads to certain text being places in their clipboard. As far as I know the only solution to this is Zero Clipboard, but I feel like it's not accepted as a good solution since it uses flash. Are there any alternatives if I want to allow users to copy specific text information at the click of a button?

share|improve this question
up vote 0 down vote accepted

I believe that the answer is no. Javascript has the methods to copy to clipboard, however browsers don't allow them for security purposes...

I'm afraid i've to say that flash is the only solution.

share|improve this answer
Look carefully - the methods talked about in the MDC article you linked to are meant for add-on authors, whose scripts have higher privileges than any scripts that run on websites – Yi Jiang Dec 28 '10 at 5:17
Indeed. I'm sorry for that one! I guess i shouldn't have read it "diagonally" – Couto Dec 28 '10 at 5:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.