• 0

How do I copy div content to clipboard? (JavaScript)


Question

Guys, what's up? I want to copy a div content to the user's clipboard using JavaScript.

I've been browsing Google, but everything I find is that it needs to have some flash file running in order to copy the content to user's clipboard.

Is there a different approach?

Thanks :p

3 answers to this question

Recommended Posts

  • 0
  On 04/02/2012 at 17:24, cralias said:

There isn't. Modern browsers generally do not allow Javascript to access clipboard, for absolutely rightful security reasons. Flash, being a plugin, however, can rather freely do so.

Check this one: http://code.google.c.../zeroclipboard/

Thanks for the link, bookmarked... I'm sure it will prove useful at some point! (Y)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.