Tiny Library for Copy Text In Clipboard | CopyClipboardJs

CopyClipboardJs is a lightweight and very fast JavaScript library that copies specific text to the clipboard.

Features

  • Fast
  • Compact
  • No dependencies
  • Event after copy (e.g :AJAX, send a GET request)

How to make use of it:

1. Add the main JavaScript file.

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

2. Select the text you want to copy in the Copy data text attribute.

data-copy-text

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

3. Sometimes you may need to copy text from another item.

Enter Text : <input class="input_text" name="text" type="text">
<br>
<button data-copy-from=".input_text">Click , Copy!</button>

Arguments

Argument NameGoal
data-copy-textSet Text
data-copy-fromSet a target, to get the text from they
data-copy-afterExecute the code after copying
data-copy-linkSend GET Request to a link after copying

fast text copy javascript library, CopyClipboard plugin/github


See Demo And Download

Official Website(BaseMax): Click Here

This superior jQuery/javascript plugin is developed by BaseMax. For extra advanced usage, please go to the official website.

Share