DEV Community

loading...

Discussion on: How to copy text to the clipboard with JavaScript (5 lines of code)?

Collapse
ibrahima92 profile image
Ibrahima Ndaw Author

According to Can I Use 93.39% of browsers support this method.

And to paste something on the input field just do this document.execCommand("paste")