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
  • 5,201
  • 10
  • 52
  • 88

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,289
  • 1
  • 10
  • 14