0

I need an js or php script who can help me to "select text and autocopy" without press ctrl + c, just select and copy in my html table columns page, could I do that?

Thank you so much for your help

  • 3
    Possible duplicate of [Copy selected text to the clipboard WITHOUT using flash - must be cross-browser](http://stackoverflow.com/questions/6300213/copy-selected-text-to-the-clipboard-without-using-flash-must-be-cross-browser) – caisah Mar 10 '17 at 13:14
  • You can't reliably do this in all browsers yet. There's also absolutely no way to do this on iPads/iPhones. – apokryfos Mar 10 '17 at 13:16
  • use `document.execCommand('copy')`. this will copy current selected text – Ararat Harutyunyan Mar 10 '17 at 13:20

2 Answers2

0

I would recommend using this:

https://clipboardjs.com/

It is a javascript library that does ecactly what you want.

Sven Liebig
  • 828
  • 7
  • 18
0

I need just while selecting the text, this selection can copy my text without using an Submit Button / or copy button.

Thank you