DEV Community

Discussion on: How to use Javascript to copy text to the clipboard

jorik profile image
Jorik • Edited

Also worth mentioning Transmat for a third option using the DataTransfer API, this will also include drag-drop! :-)

tqbit profile image
tq-bit Author • Edited

Cool idea. I've already used DataTransfer for dropping a file in the browser for fileupload, didn't know it works the other way around as well