copy.js
copy-simple.js is a painless copy helper for JavaScript.
Usage
There are different functions to copy values. All methods will return true or false;
import the library
;
Copy Element Value - val()
var copiedValue =
Copy Element Text - text()
Test Content
var copiedText = text
Copy Element HTML - html()
Test Content2
var copiedHtml =
Copy Current URL - url()
var copiedUrl =
Copy Selected Text - selected()
My Text
var copiedSelected = selected