Home
Softono

CopyClipboardJs

Open source JavaScript
20
Stars
1
Forks
1
Issues
2
Watchers
8 years
Last Commit

 About CopyClipboardJs

Tiny Library for copy text in clipboard.

Platforms

Web Self-hosted

Languages

JavaScript

Links

Need Help Installing CopyClipboardJs?

We provide expert installation service for this software. Our team will install, configure, and secure CopyClipboardJs on your server. plans start at just $30.

CopyClipboardJs

View on GitHub

CopyClipboard

Tiny Library for copy text in clipboard.

CopyClipboard.min.js File Size CopyClipboard.min.js Validation Code

Features

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

Arguments

Argument Name Goal
data-copy-text Set Text
data-copy-from Set target, to get the text from they
data-copy-after Execute the code after copying
data-copy-link Send GET Request to a link after copying

Samples

To view the full details, run the Example.html file.

data-copy-text

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

data-copy-from

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

data-copy-after

It will be completed in the future.

onclick

<button data-copy-text="5+5" onclick="copy.text(this);">Click , Copy text with onclick</button>
<button data-copy-from="#label_text" onclick="copy.from(this);">Click , Copy from #id with onclick</button>
<button onclick="copy.copy_text('Hello my friend!');">Click , Copy text</button>

License

CopyClipboard is licensed under the GNU General Public License.