Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.