Copying text to clipboard with JavaScript

Copying text to clipboard with JavaScript

In this article, I will be explaining in depth how the copyToClipboard snippet from 30 seconds of code works. You can find the source code for it and a ton of other useful methods in the project’s repository.

Hi, thank you so much for posting this.

Please, may I ask how would you do if you have 3 or more textboxes? and then you want to have the content of the text boxes to clipboard?

Best,
C

I don’t suppose you’d know why the copy command is listed as deprecated and non-standard on the MDN Web Docs then, even though it seems like it still works?