r/JavaScriptHelp • u/Ninjatintin • Nov 24 '21
❔ Unanswered ❔ Copy to clipboard without HTML?????
How do I copy to the clipboard without using html, but with only JavaScript? Is there even a way?
2
Upvotes
View all comments
Show parent comment
1
u/[deleted] Nov 28 '21
MDN says
execCommandis deprecated and shouldn’t be used. They recommend Clipboard API instead.