I need to set my user’s clipboard when they trigger an event on my webpage. I realize each browser has a different way to do this, so do you know of a library or code snippet that will achieve this cross-browser?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This article might help you with that :
Copy to Clipboard with Javascript on Mozilla firefox and IE
The basic idea is to :
window.clipboardDatafor Internet ExplorerSeems that this doesn’t work with Flash 10, though, from some reports I’ve seen (never tried myself)
And/Or here is another solution (still using Flash — but seems to be working with Flash 10, for this one) : Zero Clipboard