Fast Text Copy JavaScript Library – CopyClipboard

Category: Javascript , Text | July 6, 2018
Author: BaseMax
Views Total: 253 views
Official Page: Go to website
Last Update: July 6, 2018
License: MIT

Preview:

Fast Text Copy JavaScript Library – CopyClipboard

Description:

CopyClipboard is a lightweight and blazing fast JavaScript library that copies specific text to the clipboard.

The library also allows you to copy text from a specific container.

How to use it:

Link to the main JavaScript file.

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

Specify the text you want to copy in the data-copy-text attribute.

<button data-copy-text="Hello! how are you?">Click , Copy!</button>

Sometimes you might need to copy the text from another element.

<label id="label_text">This is a sample!</label>
<button data-copy-from="#label_text">
  Click , Copy from #id
</button>

You Might Be Interested In:


Leave a Reply