Simplest Copy To Clipboard Library – simpleCopy

Category: Javascript , Text | May 3, 2019
Authorkyle-rb
Last UpdateMay 3, 2019
LicenseCreative Commons Zero
Views1,713 views
Simplest Copy To Clipboard Library – simpleCopy

simpleCopy is a dead simple, dependency-free JavaScript library that allows you to copy any content to the clipboard.

How to use it:

Download and import the simpleCopy library into the html file.

<script src="simplecopy.min.js"></script>

Call the main function and specify the content to be copied into your clipboard.

simplecopy(copyText)

Execute a custom function after the content is copied into the clipboard.

simplecopy(copyText, callback)

Changelog:

05/03/2019

  • Use innerText

You Might Be Interested In:


One thought on “Simplest Copy To Clipboard Library – simpleCopy

  1. notmypt

    How can i do if in my post there are many area texts which need to be copy?

    Reply

Leave a Reply