2

how do I copy selected text automatically by using Javascript?

For example, when I highlighted a word (by double-clicking it) in a page, and that word is being automatically copied into clipboard.

Is there a way to do this?

emen
  • 6,050
  • 11
  • 57
  • 94

1 Answers1

1

This is what you want to use: https://code.google.com/p/liveclipboard-jquery

some versions of ie can do this natively.

andygoestohollywood
  • 1,285
  • 1
  • 10
  • 14