Simplest Copy To Clipboard Library – simpleCopy

Category: Javascript , Text | May 3, 2019
Author:kyle-rb
Views Total:1,481 views
Official Page:Go to website
Last Update:May 3, 2019
License:Creative Commons Zero

Preview:

Simplest Copy To Clipboard Library – simpleCopy

Description:

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