Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to copy text in js

const copyOnClipboard = (txt) => navigator.clipboard.writeText(txt)
 
PREVIOUS NEXT
Tagged: #copy #text #js
ADD COMMENT
Topic
Name
1+7 =