3
I simply want the Javascript command that copies and pastes, regardless of whether it works on all browsers.
There is a similar question here. But it requires it to work on all browsers. Cross-browser way of copying text to Clipboard (Clipboard)
This other question does not meet my expectations as I literally need the Ctrl c command and do not need to run cross browser. (for the system will be just for me)
NOTE: It needs to be Javascript, nothing other languages.
I don’t understand why the question about copying text pro Clipboard doesn’t apply to your case. (And which browser you use?)
– hugomg
I think there was no need to duplicate your other question, 3 people already voted to reopen, it was only a matter of time and argue.
– Guilherme Nascimento
You still haven’t answered me, you want to copy the text from
<div>
or the<div>
formatted (with styles etc) to paste into Word for example?– Guilherme Nascimento
The @mgibsonbr response works in my case. (No browser preferences) No need to copy formatting, only content.
– Felipe Jorge